Closed crookedneighbor closed 1 year ago
These logos should be determined by the configuration on your merchant account. I think it may be pulled only from the configuration from your default merchant account, so if you're specifying a merchant account in your client token generation, and that merchant account does not support Discover, that could be the reason you're seeing this.
If that's the case, we'll have to provide someway to override the logos provided.
@studios, If you need a temporary workaround, you can target:
[data-braintree-id="discover-card-icon"] {
display: none !important;
}
We've released a fix for this as of version 1.38.0
You can selectively disable different card brands by setting the appropriate fields in the card.overrides.fields.number.supportedCardBrands
object when creating the Braintree dropin instance, disabling the card brands this way will now also prevent the respective icon from rendering.
Example shown below.
braintree.dropin.create({
authorization: 'your_token',
container: '#dropin-container',
card: {
overrides: {
fields: {
number: {
supportedCardBrands: {
visa: true,
mastercard: true,
"american-express": false
},
}
}
}
}
})
Originally posted by @studios in https://github.com/braintree/braintree-web-drop-in/issues/613#issuecomment-761536739