stop_payment_order HTTP 402 Stripe Declines Stripe Error: stop_payment_order –
The stop_payment_order error is triggered when Stripe declines a payment due to an unknown reason. This error does not indicate a technical issue with the API or payment gateway, but rather a problem with the cardholder's account or bank.
Root Causes
Unknown Card Reason
The card issuer declined the transaction without providing a specific reason.
Insufficient Funds
The cardholder's account has insufficient funds to cover the payment amount.
Resolution
1.Verify Card Details
Check that the card details are correct and up-to-date.
2.Contact Cardholder
Reach out to the cardholder to confirm their account balance and payment method.
Code Examples
stripe.api_key = 'YOUR_STRIPE_API_KEY'
try:
charge = stripe.Charge.create(amount=1000, currency='usd', source='tok_visa')
except stripe.error.CardError as e:
print(e.code)
print(e.user_message)
const stripe = require('stripe')('YOUR_STRIPE_API_KEY');
try {
const charge = await stripe.charges.create({ amount: 1000, currency: 'usd', source: 'tok_visa' });
} catch (err) {
console.log(err.code);
console.log(err.user_message);}
$stripe = new Stripe('YOUR_STRIPE_API_KEY');
try {
$charge = $stripe->charges()->create(['amount' => 1000, 'currency' => 'usd', 'source' => 'tok_visa']);
} catch (Stripe\Error\Card $e) {
echo $e->getErrorCode();
echo $e->getMessage();}
curl -X POST https://api.stripe.com/v1/charges \
-u YOUR_STRIPE_API_KEY: \
-d 'amount=1000¤cy=usd&source=tok_visa'
FAQ
What does a stop_payment_order error mean? ▾
The stop_payment_order error is triggered when Stripe declines a payment due to an unknown reason.
How do I resolve a stop_payment_order error? ▾
To resolve the error, verify the card details and contact the cardholder to confirm their account balance and payment method.
Independent reference. Always verify against the official Stripe Declines documentation.