react-native-braintree-dropin-ui
react-native-braintree-dropin-ui copied to clipboard
Apple Pay
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?
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.
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 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.
Any updates? this problem is killing me
please review the line 103 https://github.com/wgltony/react-native-braintree-dropin-ui/blob/master/ios/RNBraintreeDropIn.m
I found that the apple pay code is 18, not 16
No solution yet?
would love an update on this issue! I'm using simulator and the app just crashes when I use apple pay
I'm facing the same issue with the last version 1.1.1
same issue kindly help me for the same its really killing me
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 ?
Facing the same issue Any solution for this ?
result.paymentMethodType == 17
please add this