BlackBoxVision / react-native-mercadopago-px

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

Checkout failing on every payment result #18

Closed fedetoledo closed 4 years ago

fedetoledo commented 4 years ago

Describe the bug I'm having this problem. When you press "pagar", it says "procesando pago" and after that, the "pagar" button goes unavailable, and an empty red square slides up for a second, no text within. After that I can't pay again, I have to go back to my app.

EDIT: I'm using the example code that you provide. I have created a Mercado Pago test user and using it as a customer, while using my sandbox credentials to test the integration. It could be misconfiguration, as i'm testing in Android and couldn't find the installation process, like the IOS manual installation in your docs. I used automatic link but would be great to check if it's all linked like it should.

Screenshots Screenshot_20200801-124833 Screenshot_20200801-124836

Smartphone

JonatanSalas commented 4 years ago

Hi! Thanks for reaching us.

We need a little bit of information to understand what's going on around, so let's check a few steps:

  1. How are you dealing with the Checkout Preference creation?
  2. The Checkout Preference that you're creating is in sandbox mode or production mode?
  3. The Credentials that you're using to launch the Mobile Checkout is in sandbox mode or production mode?

I think that the problem could be related for a misconfiguration. If you're creating a preference that doesn't match correctly with your credentials, or if you're mixing environments when dealing with the checkout this error is pretty common.

I've also another question, are you willing to opening for us the repository where you've your code to help solve the issue? (This is just in case we can't help you via the issue tracker).

fedetoledo commented 4 years ago

Thanks for the reply, I've updated the issue. I can provide you the repo if you'd need to.

JonatanSalas commented 4 years ago

In react-native at version superior to v0.60 dependencies are auto-linked.

This library started with react-native 0.60 in mind. For IOS we've a little bit more steps, due to issues with how MP needs the integration to be done.

Maybe for this case, would be cool to get access to the repo so we can help you understand what's going on.

If you've your repo hosted here, bring me access! Glad to help you.

fedetoledo commented 4 years ago

Sent you invitation. I have added the official mercado pago dependency to my android build, maybe that's bringing up some issues with the setup.

JonatanSalas commented 4 years ago

You shouldn't add that! Our library covers you with MP, we've installed in the gradle library setup the latest working version of the MP stable.

You can see it here:

https://github.com/BlackBoxVision/react-native-mercadopago-px/blob/master/android/build.gradle#L130

fedetoledo commented 4 years ago

Ok, the error is not from this library, but from my testing user from MP. Using any random email like "user@test.com" works perfectly. Thank you for your help!

JonatanSalas commented 4 years ago

You're welcome! Glad to help!