Card Product Codes
Learn about product codes for cards.
Product codes exist as a way to identify the specific program or product associated with a credit card.
Retrieving product codes
When using the Payment Intents API for e-commerce payments, Stripe stores the product code on the PaymentMethod object, in the brand_
field within the card_
hash. After successfully confirming a PaymentIntent, the brand_
field also includes the product code in the payment_method_details for the corresponding charge in the API response for card_present payments (using Terminal).
The brand_
field might be null
if the product code hasn’t been collected yet (for example, when creating a card) or the product codes for the particular card network aren’t supported. We currently support Visa and Mastercard product codes only.
Product codes
The following table lists product code values for each card brand:
Testing
While in test mode, use the following test cards to simulate purchases made with specific card product codes, which are returned in the brand_
field. Each test card takes any future date as the expiration, any three-digit value as the CVV, and any postal code.
Description | Number | Product code |
---|---|---|
Mastercard Standard Debit | MDS | |
Mastercard Platinum Debit | MDP | |
Mastercard World Credit | MCW | |
Mastercard World Elite Credit | MWE | |
Mastercard World Elite for Business Credit | MAB |