Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showPaymentViewController promise not resolved nor rejected #94

Open
remicoges opened this issue Jun 11, 2018 · 2 comments
Open

showPaymentViewController promise not resolved nor rejected #94

remicoges opened this issue Jun 11, 2018 · 2 comments

Comments

@remicoges
Copy link

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 the showPaymentViewController 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

@zhenghow93
Copy link

zhenghow93 commented Jul 9, 2018

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

@zhenghow93
Copy link

Not sure if this helps, this issue only appears in braintree sandbox environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants