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

An Internal error occurred.

Open mssdivyani opened this issue 4 years ago • 2 comments

After i enter all the card details and click on the Button, It is continuously giving me this error message.

versions: react-native - 0.61.5 react - 16.9.0 react-native-braintree-dropin-ui - 1.0.9

1596618922428

BraintreeDropIn.show({ clientToken: clientToken, merchantIdentifier: '****************', googlePayMerchantId: 'googlePayMerchantId', countryCode: 'US', currencyCode: 'USD', merchantName: 'iTours', orderTotal:'${totalPrice}', googlePay: true, applePay: true, }) .then(result => { console.log('---result from BraintreeDropIn---', result); }) .catch(error => { console.log('Braintree error', error.message); alert(error.message); });

It is going in catch with the mentioned error every time i try to make payment.

mssdivyani avatar Aug 06 '20 07:08 mssdivyani

Tried digging into the issue and found out that It is not working with production client token and hence giving the above mentioned error. If i put static test client token, then it works. I am doing a payment of 0.01 $. Any help would be appreciated. Thanks.

mssdivyani avatar Aug 07 '20 07:08 mssdivyani

In case anyone is looking for this issue, i was passing wrong merchantId, I corrected it and it worked

mssdivyani avatar Aug 28 '20 06:08 mssdivyani