Skip to content
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

paymentMethodType for apple pay #105

Open
cemergen opened this issue Apr 25, 2023 · 0 comments
Open

paymentMethodType for apple pay #105

cemergen opened this issue Apr 25, 2023 · 0 comments

Comments

@cemergen
Copy link

Hi,
I've found a problem on RNBraintreeDropIn.m file. The app was crashing when I tried to use apple pay option. I've investigated the code and I noticed paymentMethodType for apple pay was 17.
the existing code is like that:

if(result.paymentMethod == nil && (result.paymentMethodType == 16 || result.paymentMethodType == 18)){ //Apple Pay

I've added new one to handle the case

if(result.paymentMethod == nil && (result.paymentMethodType == 16 || result.paymentMethodType == 17 || result.paymentMethodType == 18)){ //Apple Pay

after that fix, it was looking working. I can make payments by using apple pay option.
Can I use this fix on my production app?

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant