Open remicoges opened 6 years ago
I am having the similar problem as well. If I pay by keying in test card details, it doesn't resolve with the "then" or "catch" promises. However, if I pay with "Paypal Check out" (the button on top), it works.
Braintree Environment: sandbox Android OS: 4.4.2 React Native Version: 0.46.4
UPDATE: react-native-braintree-xplat version: 3.2.0
Not sure if this helps, this issue only appears in braintree sandbox environment.
Hello,
I have setup this library to get the payment working on my react native app.
BTClient.setup("<token>") .then(done => { console.log("done"); BTClient.showPaymentViewController({ callToActionText: "Pay" }) .then(nonce => console.log(nonce)) .catch(err => console.error(err)); }) .catch(error => { console.error(error); });
I enter test payment informations such as cb or paypal, but when I click the "Pay" button none of theshowPaymentViewController
promise (then or catch) is executed.I have tried with a setTimeout as well but it doesn't work either.
Has anyone experienced this before ?
I have tried only on Android with the latest version of the library
Thanks for your help