naoufal / react-native-payments

Accept Payments with Apple Pay and Android Pay using the Payment Request API.
https://www.npmjs.com/package/react-native-payments
1.59k stars 413 forks source link

Braintree is not a supported gateway #238

Open indigomelody opened 4 years ago

indigomelody commented 4 years ago

Creating a payment with Braintree returns an Braintree is not a supported gateway error.

My code is as follows;

const METHOD_DATA = [ { supportedMethods: ['apple-pay'], data: { merchantIdentifier: 'merchant.com.zebr', supportedNetworks: ['visa', 'mastercard', 'amex'], countryCode: 'GB', currencyCode: 'GBP', paymentMethodTokenizationParameters: { parameters: { gateway: 'braintree', 'braintree:tokenizationKey': 'your_tokenization_key', }, }, }, }, ];

I have tried installing the addon react-native-payments-addon-braintree, but it seems to break the entire build.

Any ideas?

nabilfreeman commented 3 years ago

Hi @indigomelody, we'll have an update 0.8 released in a couple of days that will hopefully solve this problem for you!

GFean commented 3 years ago

Hi , any updates about this ? having the same issue while tokenizing the payment.

henrycheung19 commented 3 years ago

braintree not working at all.

GFean commented 3 years ago

I was able to solve this problem, since I also use react-native-dropin-ui in my project, I took some source code from there and implementations of library as well. You can see this repository forked on my github. Feel free to use it or ask some questions