card_not_supported HTTP 402 Stripe Declines

Stripe Error: card_not_supported –

The card_not_supported error is triggered when a card does not support the type of purchase being made. This can occur due to various reasons such as the card issuer's policies or the card itself not supporting certain types of transactions. It does not mean that the card is declined for insufficient funds, but rather it is not capable of handling the specific transaction.

Official documentation ↗

Root Causes

1.

Card Issuer Policy

The card issuer may have policies in place that restrict certain types of transactions.

2.

Card Type Limitation

Some cards may not support certain types of purchases due to their technical capabilities.

Resolution

1.Check the card issuer's policies

Verify if the card issuer allows the specific type of transaction.

2.Use a different payment method

Consider using an alternative payment method that supports the required transaction type.

Code Examples


            stripe.api_key = 'YOUR_STRIPE_API_KEY'
try:
	charge = stripe.Charge.create(amount=100, currency='usd', source='tok_visa')
except stripe.error.CardError as e:
	print(e)
          

            const stripe = require('stripe')('YOUR_STRIPE_API_KEY');
try {
	const charge = await stripe.charges.create({ amount: 100, currency: 'usd', source: 'tok_visa' });
} catch (err) {
	console.log(err);
}
          

            require_once('vendor/autoload.php');
use Stripe\Stripe;
use Stripe\Charge;
try {
	$charge = Charge::create(array("amount" => 100, "currency" => "usd", "source" => "tok_visa"));
} catch (Exception $e) {
	print($e->getMessage());
}
          

            curl -X POST https://api.stripe.com/v1/charges \
-H 'Authorization: Bearer YOUR_STRIPE_API_KEY' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'amount=100&currency=usd&source=tok_visa'
          

FAQ

Why am I getting this error?

This error occurs when the card does not support the type of purchase being made.

How do I resolve this issue?

Check the card issuer's policies and consider using a different payment method.

Independent reference. Always verify against the official Stripe Declines documentation.