There are two ways to find out which type of card your customer is using:
In the Card details section of the charge page beneath the expiry date, the "Type" field will display the card type. If the customer has 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.
The funding
parameter of the card object exposes whether the card is a credit
, debit
or prepaid
card. A card may be unknown
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
or Diners Club
. A card brand may be unknown
if Stripe was unable to determine its brand.