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

Unable to relate supported brand with the supported paymentMethodVariant in the web drop-in onBinLookup #2873

Open
shadowtje1990 opened this issue Sep 25, 2024 · 2 comments
Labels
Enhancement New feature or request Needs more info Further information is requested

Comments

@shadowtje1990
Copy link

Is your feature request related to a problem? Please describe.
I am using the onBinLookup from the web-component https://docs.adyen.com/payment-methods/cards/web-component/ to identify what type of brand and paymentMethodVariant the card is. This works fine as long as the card does not have a duo brand.

As example when I use this test card
4035 5014 2814 6300 | Visa Debit / Cartes Bancaires

image

Now there is no way to associate what paymentMethodVariant to use for the brand that I have and is supported.

Describe the solution you'd like
I would like to be able to associate what paymentMethodVariant to use for the brand that I have and is supported from the onBinLookup in the web-component.

Describe alternatives you've considered
The paymentMethodVariant is only available in 2 situations

  1. After a payment. (sadly this is not an option for us because we need this for our costEstimation and we need this before a payment)
  2. in the onBinLookup from the web-component but this has this limitation as explained above.
@shadowtje1990 shadowtje1990 added the Enhancement New feature or request label Sep 25, 2024
@sponglord
Copy link
Contributor

sponglord commented Sep 27, 2024

@shadowtje1990 Can you please explain what you mean by

Now there is no way to associate what paymentMethodVariant to use for the brand that I have and is supported.

It's not clear what you mean, or what you would like to be working differently

thanks

@sponglord sponglord added the Needs more info Further information is requested label Sep 27, 2024
@shadowtje1990
Copy link
Author

Hi @sponglord,

I'll do my best to explain this more clearly.

When you input a card number, it triggers the onBinLookup call. This call retrieves information about the entered card, such as the brand and paymentMethodVariant. From my understanding, the paymentMethodVariant is linked to a brand and provides more specific details about the card type.

However, for cards with multiple brands (e.g., 4035 5014 2814 6300 | Visa Debit / Cartes Bancaires), you receive an array of paymentMethodVariants for both brands, but there's no clear indication of which paymentMethodVariant corresponds to which brand. I would like a way to correlate the paymentMethodVariant with the brand from this call without needing to manually map the entire payment method variant list (which isn't even complete, as noted on the page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Needs more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants