Closed codal-hkrishnani closed 2 years ago
I tried this but it doesn't working in android.
BraintreeDropIn.show({ clientToken: paymentClientToken, merchantIdentifier: mID, googlePayMerchantId: 'googlePayMerchantId', countryCode: 'US', currencyCode: 'USD', merchantName: mName orderTotal: '1', googlePay: true, applePay: true, vaultManager: false, payPal: false, cardDisabled: true, darkTheme: true, }) .then((result) => { console.log('.then :: result', result); }) .catch((error) => { console.log('openPaymentMethods :: error', error, error.code); if (error.code === 'USER_CANCELLATION') { // update your UI to handle cancellation } else { // update your UI to handle other errors } });
I found what's issue here. Why is this code is commented in library?
I don't have permission to push in to this repo. So can't create PR.
I tried this but it doesn't working in android.
BraintreeDropIn.show({ clientToken: paymentClientToken, merchantIdentifier: mID, googlePayMerchantId: 'googlePayMerchantId', countryCode: 'US', currencyCode: 'USD', merchantName: mName orderTotal: '1', googlePay: true, applePay: true, vaultManager: false, payPal: false, cardDisabled: true, darkTheme: true, }) .then((result) => { console.log('.then :: result', result); }) .catch((error) => { console.log('openPaymentMethods :: error', error, error.code); if (error.code === 'USER_CANCELLATION') { // update your UI to handle cancellation } else { // update your UI to handle other errors } });