invalid_amount HTTP 402 Stripe Declines

Stripe Error: invalid_amount –

When the payment amount is invalid or exceeds the allowed limit, Stripe triggers an 'invalid_amount' decline. This occurs at the API level when processing a payment request. It does not indicate a technical issue with your code but rather a problem with the payment details.

Official documentation ↗

Root Causes

1.

Invalid Payment Amount

The payment amount exceeds the allowed limit or is invalid.

2.

Insufficient Funds

The customer's account has insufficient funds to cover the transaction.

3.

Incorrect Currency

The payment amount is in an incorrect currency.

Resolution

1.Verify Payment Amount

Check that the payment amount matches the expected value.

2.Update Customer Information

Ensure customer information is up-to-date and accurate.

Code Examples


            stripe.Charge.create(amount=1000, currency='usd')
          

            stripe.charges.create({ amount: 1000, currency: 'usd' })
          

            Stripe\Charge::create(['amount' => 1000, 'currency' => 'usd']);
          

            curl -X POST https://api.stripe.com/v1/charges -d "amount=1000&currency=usd"
          

FAQ

What does 'invalid_amount' mean in Stripe?

It means the payment amount is invalid or exceeds the allowed limit.

How do I fix the 'invalid_amount' error on Stripe?

Verify the payment amount and update customer information if necessary.

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