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

Credit or Debit Card" option is not showing in android

Open ajitdas123 opened this issue 2 years ago • 1 comments

Hello, I am trying to integrate Braintree with my application, but the drop-in UI only shows PayPal, not the card payment option. I am using the default example code base

BraintreeDropIn.show({
  clientToken: 'token',
  merchantIdentifier: 'applePayMerchantIdentifier',
  googlePayMerchantId: 'googlePayMerchantId',
  countryCode: 'US',    //apple pay setting
  currencyCode: 'USD',   //apple pay setting
  merchantName: 'Your Merchant Name for Apple Pay',
  orderTotal:'Total Price',
  googlePay: true,
  applePay: true,
  vaultManager: true,
  payPal: true, 
  cardDisabled: false,
  darkTheme: true,
})
.then(result => console.log(result))
.catch((error) => {
  if (error.code === 'USER_CANCELLATION') {
    // update your UI to handle cancellation
  } else {
    // update your UI to handle other errors
  }
});

I have checked the related Issue https://github.com/wgltony/react-native-braintree-dropin-ui/issues/52, but that option is no longer valid since it's already commented out in the latest version of the package.

ajitdas123 avatar Jun 05 '22 05:06 ajitdas123