There are two ways to find out the type of card your customer is using:
Using the Dashboard
In the Card Details section of the charge page beneath the expiration date, the “Type” field will display the card type. If the customer saved their card, you can also find this information under the Card section of their Customer page.
The options are:
Credit
Debit
Prepaid
Unknown (shown if Stripe was unable to determine its funding type)
The brand will also be displayed, such as Visa, American Express or any other currently supported card brand. A card brand may be unknown
if Stripe was unable to determine its brand.
Using the API
The
funding
parameter of the card object exposes whether the card is acredit
,debit
, orprepaid
card. A card may beunknown
if Stripe was unable to determine its funding type.The brand parameter of the card object exposes whether the card brand is
Visa
,American Express
,MasterCard
,Discover
,JCB
orDiners Club
. A card brand may beunknown
if Stripe was unable to determine its brand.