Skip to content

Get payment_type_id from onSubmit or getFormData() #40

Closed Answered by meliguicarvalho
joxpulp asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
I assume you are referring to the Card Payment Brick. We currently do not have a way to retrieve the payment_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's id and the corresponding payment_type_id. With this data you can get the payment_type_id based on the payment_method_id

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andreagostinho-meli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants