Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

Credit Card works fine, PayPal option returns error "PayPal app switch is missing a returnURLScheme" #80

Open kheber92 opened 4 years ago

kheber92 commented 4 years ago

Hi,

when I try to click on "PayPal" in the modal I get the error alert message: PayPal app switch is missing a returnURLScheme.

Simulator Screen Shot - iPhone X - 2020-03-27 at 17 23 21

There's no error in the console or anything, just this alert.

Any idea how to fix this? Not sure if it's a misconfiguration or problem in the plugin itself. Thank you in advance!

ciccilleju commented 4 years ago

Are you using it with cordova?

I had the same issue with this version, so I tried to follow the instructions written on https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4

i was able to go ahead, logging into paypal account and choose the payment card. After that the app crashes, getting this error in the Xcode console:

2020-03-03 10:45:55.487106+0100 Single Fin App[53289:11316095] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'

Unfortunately I cant use the guggested manteined fork because it uses deprecated Api and Apple refuses the build.