-
Notifications
You must be signed in to change notification settings - Fork 55
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
could not invoke rnpaypal.requestonetimepayment #49
Comments
Hi @danielzzz If it's |
I think it was 3.13.0 (got it from the docs) thanks! |
Of course! lmk if there are more issues and I can reopen |
Hi @nzankich I'm also getting this error in the latest release (3.1.1). Very basic setup on Android and calling 'requestOneTimePayment' gives us this error. |
@thomasonweb did you update your gradle file? from readme: Upgrading to the new braintree sdk broken some backward compatibility |
Hi @nzankich, This issue is resolved when adding the implementation you suggested. I was indeed still using an older one. However, now a new issue is in place. After confirming the Payment on the PayPal website, this screen shows and the screen does not close. And after closing it by pressing the "X" button, the requestOneTimePayment does not seem to resolve. In the older implementation (previously I was using 2.1.0) I saw the same behaviour but after pressing the "X" button the requestOneTimePayment was resolving and we could complete payment. Any idea? |
@thomasonweb Ugh, yea. There's a comment in a closed issue that mentions this issue with Android as well Looks like it's a braintree sdk issue braintree/braintree_android#244 |
I can reopen that one |
Hi nzankick, It is not a new issue. It happened already in v2. But the difference between v2 and v3 is that if you close the webview yourself after payment it would resolve with a nonce while in v3 it does not resolve at all. Summary: V2 (worked, but not ideal flow)
V3 (not working)
So even with the Chrome window not closing automatically it was still somewhat usable in V2 as a user close would still resolve the promise. In v3 nothing happens. |
@thomasonweb which version of android is this? I'm not able to reproduce in the example app |
Hello Guys ! I am Facing Same Issue . I am Using oneTimePaymentMethod . i am able to login through sandbox account . then also pay the payment . the webview just closes and no promise function is being run . i.e-> .catch or . then , i am using "react-native-paypal": "^3.1.1", -> |
hello, I've been trying to use your module on android, but when following your example I am getting
could not invoke rnpaypal.requestonetimepayment
null
No static method newInstance(Landroid/app/Activity;Ljava/lang/String;)...
I was checking if it was something with mostly automatic installation, but when I try to do it manually I am getting a warrning it's being imported twice, so I gues this is not the problem
please advice
thanks, dan
The text was updated successfully, but these errors were encountered: