smarkets / react-native-paypal

React Native library that implements PayPal Checkout flow using purely native code
MIT License
118 stars 54 forks source link

No error object on UserCancelledException #119

Open Ujjwal-Kandel opened 2 years ago

Ujjwal-Kandel commented 2 years ago

I've followed your example and added a requestOneTimePayment call. Everything works fine except for when I cancel the payment entirely by closing the webview without logging in. I have the API call in a try/catch block but the requestOneTimePayment() method's Promise doesn't resolve/reject at all.

image