Library
List of Errors
There is currently another in-progress request using this token. This token cannot be used again if that charge is successful.

Recommended Customer Message

There is currently another in-progress request using this payment method (that probably means you clicked twice, and the other charge is still going through). Wait till the request is complete or exhausted.

Description

The payment failed because the token is already being used for another transaction. This error occurs when the customer clicks the payment button multiple times, when the same token is used for concurrent transactions, or when slow network responses cause duplicate requests.

Recommended Customer Message

Your payment is already being processed. Please wait a moment before trying again to avoid duplicate charges.

Root Cause

  • Duplicate transaction attempt: The customer likely clicked the payment button multiple times, initiating multiple requests with the same token.
  • Token reuse conflict: The same token is being used for multiple concurrent transactions, which the payment gateway does not allow.
  • Slow network response: The initial transaction is still being processed due to delayed responses, causing subsequent requests to fail.
  • Lack of idempotency handling: The integration does not handle repeated clicks or multiple submissions gracefully.

Troubleshooting and Solutions

  • Advise the customer to wait for the first transaction to complete before attempting again.
  • Inform the customer to avoid clicking multiple times on the payment button.
  • Implement client-side controls to disable the payment button after the first click until the request completes.
  • Use idempotency keys in your API calls to prevent duplicate charges and manage concurrent transaction requests effectively.
  • Monitor transaction logs to ensure only one successful charge is processed for the token in use.
  • If it's occurring quite often, reach out to the Chargebee support team with sample logs for further investigation.