Stripe decline code · By Hanzalah Seikhai, Stripe developer

Stripe duplicate_transaction: check before charging again

duplicate_transaction means: A payment with the same amount and card was made a moment ago.

Retry? Check first.

Why it happens

  • The same card was charged the same amount very recently. Often a double click or a retry from your own code.

What to do

  • Look for a recent successful payment for that order before asking the customer to pay again.
  • Use one PaymentIntent per order and idempotency keys on create calls. Disable the pay button after the first click.

Where to find the code

In the Stripe Dashboard, open the failed payment and read the decline reason. In code, the error from the API has decline_code next to code: card_declined. Some errors also carry an advice_code that says whether a retry can work.


If declines like this are hurting your conversions, I find the cause in your integration and fix it as a fixed-price job. Hire me on Upwork or send the error. All codes are on the Stripe decline codes page.

Other decline codes