Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credit or Debit Card" option is not showing in android #89

Open
ajitdas123 opened this issue Jun 5, 2022 · 1 comment
Open

Credit or Debit Card" option is not showing in android #89

ajitdas123 opened this issue Jun 5, 2022 · 1 comment

Comments

@ajitdas123
Copy link

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 #52, but that option is no longer valid since it's already commented out in the latest version of the package.

@ajitdas123 ajitdas123 changed the title Credit or Debit Cart" option is not showing in android Credit or Debit Card" option is not showing in android Jun 5, 2022
@marcshilling
Copy link

@ajitdas123 the other issue is correct...you need to not pass the cardDisabled: false option. This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants