react-native-braintree-dropin-ui
react-native-braintree-dropin-ui copied to clipboard
An Internal error occurred.
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
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.
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.
In case anyone is looking for this issue, i was passing wrong merchantId, I corrected it and it worked