no_action_taken HTTP 402 Stripe Declines Stripe Error: no_action_taken –
When the card is declined for an unknown reason, Stripe's API returns this error code. This indicates that the payment gateway was unable to process the transaction due to a lack of information or an invalid request. It does not mean that the customer's account is overdrawn or that there are insufficient funds.
Root Causes
Invalid Request
The payment request may contain incorrect or missing information.
Insufficient Information
Stripe may not have enough data to process the transaction.
Resolution
1.Verify Payment Request
Check that all required fields are present and correctly formatted.
2.Resubmit Payment Request
Try again with the correct information or additional data.
Code Examples
stripe.api_key = 'YOUR_STRIPE_API_KEY'
charge = stripe.Charge.create(amount=100, currency='usd', source='tok_visa')
const stripe = require('stripe')('YOUR_STRIPE_API_KEY');
const charge = await stripe.charges.create({ amount: 100, currency: 'usd', source: 'tok_visa' });
require_once('vendor/autoload.php');
$stripe = \
curl -X POST https://api.stripe.com/v1/charges -H 'Authorization: Bearer YOUR_STRIPE_API_KEY' -d 'amount=100¤cy=usd&source=tok_visa'
FAQ
What does 'no_action_taken' mean? ▾
It means that the payment gateway was unable to process the transaction due to a lack of information or an invalid request.
How do I resolve this error? ▾
Try verifying your payment request and resubmitting it with the correct information.
Independent reference. Always verify against the official Stripe Declines documentation.