Get payment_type_id from onSubmit or getFormData() #40
-
Hi, when I trigger Thanks 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! However, this is an interesting suggestion, we will analise the possibility of adding this data, and report back to you in this thread. If you need this data for your integration, I can suggest a workaround that will allow you to obtain it, if and while we do not provide this information in a Brick callback. You could call the |
Beta Was this translation helpful? Give feedback.
Hello!
I assume you are referring to the
Card Payment Brick
. We currently do not have a way to retrieve thepayment_type_id
from this Brick.However, this is an interesting suggestion, we will analise the possibility of adding this data, and report back to you in this thread.
If you need this data for your integration, I can suggest a workaround that will allow you to obtain it, if and while we do not provide this information in a Brick callback.
You could call the
payment_methods
API directly and obtain the list of payment methods. There you can check the payment method'sid
and the correspondingpayment_type_id
. With this data you can get thepayment_type_id
based on thepayment_method_id