question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DropIn setup does not automatically show the default user credit card

See original GitHub issue

When the user has multiple credit cards and the default one is changed via the API, the next time that the dropIn menu is shown, the new default card is not shown as main card to proceed with the payment.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Sep 1, 2016

Drop-In now has a boolean parameter you can pass in called defaultFirst

When you specify a customerID that has vaulted payment methods associated with it, Drop-in displays a list of those payment methods and automatically pre-selects the one used most recently. If you pass defaultFirst, Drop-in will instead pre-select the payment method marked as default for the customer.

The docs for this are the last entry in this table

0reactions
zedtuxcommented, Nov 7, 2017

Oh, okay. That’s kind of bad as all blog articles are mentioning https://js.braintreegateway.com/v2/braintree.js

But okay, thank you very much @crookedneighbor for the information, I will use that!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Braintree not updating user preferred/default payment method
When you select a payment method from the DropIn, that payment method does not automatically get set at the customer's default. If you...
Read more >
Setup and Integration | JavaScript - PayPal Developer
By default the credit card is the only payment method enabled by default with dropin-ui, if you want to add more payment methods...
Read more >
Cards Drop-in integration - Adyen Docs
Cards Drop-in integration · Drop-in then automatically renders separate payment forms for Credit card and Debit card. · To store shopper's card details,...
Read more >
braintree-web-drop-in - Documentation
By default, payment options will appear in this order: ['card', 'paypal', ... If a user's browser does not support Venmo, the Venmo option...
Read more >
Business Credit Cards Defaulting to Out of Pocket
@lalexander26 Business Cards by system design do default to personal if your site doesn't have the Company Paid Credit Card payment type available, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found