#NewtReyes - CC BIN
1 messages · Page 1 of 1 (latest)
So are you referring to after you've used the Stripe Element to return a Payment Method?
Or maybe using JS
before the payment method gets created
something like card_element.bin()
?
If that information would exist in that context it would be on the payment Method object:https://stripe.com/docs/api/payment_methods/object
But I'm not seeing the information there right now
Nevertheless, I can see that type of information in the dashboard
Here's an example
And just to clarify where are you seeing these messages?
What objects are you looking at?
In the PaymentMethod API, the card.brand and card.funding get you what is displayed here as 'Type'
@last sapphire You can get the card brand using the change event on the card element as the customer is typing: https://stripe.com/docs/js/element/events/on_change?type=cardElement#element_on_change-handler-brand
You cannot access the full BIN of the card, though
As @coral saddle mentioned, the funding is available on the payment method object when you create that, but when/where this is available depends on your integration and what you're trying to achieve
That's not available via the public API. If you have a specific need for this, you should write in to our support team with a detailed description of your use case so they can evaluate any potential options for your account.
https://support.stripe.com/contact or email support@stripe.com
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.