wgltony / react-native-braintree-dropin-ui

React Native integration of Braintree Drop-in for IOS & ANDROID (Apple Pay, Google Pay, Paypal, Venmo, Credit Card)
MIT License
78 stars 105 forks source link

How to disable card option in android? #82

Closed codal-hkrishnani closed 2 years ago

codal-hkrishnani commented 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 } });

codal-hkrishnani commented 2 years ago

I found what's issue here. Why is this code is commented in library?

Screenshot 2022-02-24 at 3 36 22 PM
codal-hkrishnani commented 2 years ago

I don't have permission to push in to this repo. So can't create PR.