react-native-braintree-dropin-ui icon indicating copy to clipboard operation
react-native-braintree-dropin-ui copied to clipboard

Apple Pay

Open drewg233 opened this issue 5 years ago • 12 comments

Having a hard time with Apple Pay. I got through the instructions and Apple Pay shows in the simulator, but not my device. When I click Apple Pay in the simulator it crashes with the following:

2019-06-11 09:40:15.191906-0500 KeyLink[31986:15434467] -canOpenURL: failed for URL: "com.venmo.touch.v2://x-callback-url/vzero/auth" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2019-06-11 09:40:15.786428-0500 KeyLink[31986:15434467] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: nonce)'

I figured it may only happen on the simulator, but I can't see Apply Pay there. Any ideas?

drewg233 avatar Jun 11 '19 14:06 drewg233

Have you set up Apple Pay with a card on your device? I wasn't able to see the Apple Pay option until I added a card. As for the error, that may be appearing because you don't have Venmo installed. However that did not cause a crash for me so the crash may be relating to something else.

BradyShober avatar Jun 24 '19 02:06 BradyShober

et up Apple Pay with a card on your device

i use wgltony/react-native-braintree-dropin-ui have same issue. But when i try code in your fork it work ok. I'm android developer so i don't know what you change. Can you explain for me. Thanks you.

Donhv avatar Aug 22 '19 10:08 Donhv

@Donhv I'm not completely sure on the exact root cause of the crash in this issue but I'm glad that my fork is working for you. What I have changed for iOS in my fork is adding a check to make sure when Apple Pay is enabled that all required additional options have been provided, and also making the same user cancelled payment error that throws when cancelling in the Braintree UI get thrown when a user cancels out of the Apple Pay window.

BradyShober avatar Aug 22 '19 18:08 BradyShober

Any updates? this problem is killing me

lijianyu1985 avatar Dec 14 '19 14:12 lijianyu1985

No solution yet?

zach-luman avatar Apr 28 '20 00:04 zach-luman

would love an update on this issue! I'm using simulator and the app just crashes when I use apple pay

fortydegrees avatar Aug 11 '20 13:08 fortydegrees

I'm facing the same issue with the last version 1.1.1

Pandazaur avatar Feb 23 '21 14:02 Pandazaur

same issue kindly help me for the same its really killing me

mnvvivek avatar Oct 11 '21 12:10 mnvvivek

Any update on this? It's working in simulator but I can't see apple-pay option in real device? Any idea what could be issue ?

codal-hkrishnani avatar Feb 25 '22 12:02 codal-hkrishnani

Facing the same issue Any solution for this ?

RashVenkat6795 avatar Dec 16 '22 21:12 RashVenkat6795

result.paymentMethodType == 17

please add this

cemergen avatar Apr 24 '23 14:04 cemergen