# API Payment Gateway - Mercado Pago

**URL:** <https://community.thunkable.com/t/api-payment-gateway-mercado-pago/1104833>\
**Category:** Questions about Thunkable X\
**Created:** [February 17, 2021, 7:45pm UTC](https://community.thunkable.com/t/api-payment-gateway-mercado-pago/1104833 "2021-02-17T19:45:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taiskleinoliveira8y3](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@taiskleinoliveira8y3](https://community.thunkable.com/u/taiskleinoliveira8y3)\
**Post date:** [February 17, 2021, 7:45pm UTC](https://community.thunkable.com/t/api-payment-gateway-mercado-pago/1104833/1 "2021-02-17T19:45:17Z")

</div>

Hi everyone!

I am trying to add the “Mercado Pago” payment gateway on my app, but for now I could understand only the Stripe API one.

I created a “customer” and got a “user id” back from it:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c2d8d0630b1a33628e4aa9129d3af31e816024b.png)

Now, I have to create a “token” for the card that I registered and after that the payment. However, I can’t find the variables (properties) that I need to save in order to create the token.

This is what I tried to do (with the card test) in order to generate the token:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b5fbd7d4fb602bc577f41f5e5193f895ba01f70d.png)

And this is the returned message/error/status:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/0149e08b5dfbfe54b06372efb02a755ed677a938.png)

Here is the API documentation from Mercado Pago: [Mercado Pago Developers](https://www.mercadopago.com.br/developers/pt/reference)

And I think this is what I need to do:  
[https://www.mercadopago.com.br/developers/pt/guides/online-payments/web-tokenize-checkout/introduction](https://www.mercadopago.com.br/developers/pt/guides/online-payments/web-tokenize-checkout/introduction)

Does someone already set up the mercado pago API or can help me? Thank you!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/api-payment-gateway-mercado-pago/1104833/2 "2024-11-08T13:29:23Z")

</div>


