BlackBoxVision / react-native-mercadopago-px

🚀 MercadoPago PX bridge for react-native
https://react-native-mercadopago-px.blackbox-vision.tech
MIT License
104 stars 25 forks source link

Card payment gets rejected everytime #51

Closed Julietteve closed 2 years ago

Julietteve commented 2 years ago

Describe the bug I've implemented the library as it's explained in the docs here. Copied exactly the same code and replaced the access token and the public key with my MP dev credentials. Whenever I am trying to make a payment by credit or debit card, its's rejected as it's shown in the screenshot below. I used a real card info.

Whereas, if the payment is made in cash, the status is successful.

Screenshots WhatsApp Image 2021-08-27 at 15 03 10

Smartphone:

Thanks beforehand, any help would be appreciate.

JonatanSalas commented 2 years ago

Hi @Julietteve, if you use your MP dev credentials you can't test with a real card info. Real card info will only work with your MP production credentials, not with dev ones!

You should test with MP Test cards, you can check it out here: https://www.mercadopago.com.ar/developers/es/guides/online-payments/mobile-checkout/testing#bookmark_tarjetas_de_prueba

Let me know if this helps you!

Julietteve commented 2 years ago

Hi @JonatanSalas ! Thanks soo much, been dealing with this for a while. I can't believe that was the issue. I tried again with the provided examples and I could make it work.

Thanks a lot! You saved my day! :D

JonatanSalas commented 2 years ago

You're welcome! Really glad that I can be of help. I'll add a section for this in the docs site!