Online payment errors: Verify the transaction outcome and find the cause
Verify what happened to an online card payment that showed an error. Distinguish declines, authentication issues and connection failures before retrying or contacting support.

In this article
A timeout or error page during an online card payment does not prove that the customer was not charged. The request may have been processed without the response reaching the customer's screen. The first step is therefore to investigate the existing attempt, not to ask for another payment.
Keep two questions separate: What happened to the payment? At which stage did the error occur? Trying to fix the second issue before answering the first could trigger a second charge for the same order.
First, identify the correct payment attempt
Match the order reference to the provider's payment ID and, where available, separate attempt and transaction IDs. These identifiers are not interchangeable: one order may have several associated payments, and one payment may have several attempts. Using the same order number does not, by itself, provide a technical safeguard against duplicate transactions.
When matching records, check the date, time and time zone, amount, currency, test or live environment, and provider account. Do not select a record based on the amount alone. If no payment ID was received in the response, investigate through the provider's dashboard using the available order and request references. Do not treat the absence of a matching record as automatic proof of failure.
The customer's error screen may help establish when the problem appeared. However, a screenshot, the browser's return URL or an HTTP 200 response alone is not proof that payment was collected. Processing the technical request, authenticating the customer, authorizing the payment, capturing it and transferring the money to the business's bank account are separate stages.
Verify the current status with the provider
Check the transaction through authorized access to the provider's dashboard or an authenticated server-side payment status check. If your integration uses server notifications, known as webhooks, do not treat their contents as payment evidence until you have checked the signature or completed the provider's required verification method.
Compare the notification's payment ID and event time with the current record. If an older notification differs from the latest status, first establish whether they refer to the same attempt and the same stage. If you cannot resolve the conflict, do not force the outcome into a successful or failed category.
Use the provider's own status definitions to distinguish the following:
- Payment captured: Verify the amount and currency, then match the order to this payment record. Do not initiate another charge. This result does not mean that the transfer to the business's bank account is complete or that a refund or dispute cannot occur later.
- Authorized only: Authorization has been obtained, but capture has not been completed. Do not record the payment as collected. Consider the provider's permitted options for capturing or canceling the existing transaction.
- Processing or pending: The provider reports that a process is still underway. Do not treat this as a decline; follow the specified monitoring procedure.
- Customer authentication required: The customer still needs to complete a step. Use the permitted continuation flow for the existing payment.
- Definitive decline or failure confirmed: Investigate the reason for that attempt's failure before deciding whether a new attempt is appropriate.
- Outcome not yet established: The response is incomplete or the records conflict. Keep the transaction under review and do not initiate a new charge.
“Pending” and “unknown” are not the same. In the first case, the provider reports a transaction status; in the second, there is not enough evidence to determine the outcome.
Respond to the error at the relevant stage
For a request or configuration error, the technical team should check missing or incompatible fields, API access permissions, the provider account, and whether the test or live environment is correctly configured. Do not confuse this with the customer's card being declined. Before changing the request, establish that the original transaction did not succeed and is no longer processing.
For incomplete customer authentication, follow the provider's permitted steps to continue or cancel the process. Completing authentication alone does not prove that payment was collected; check the payment status again afterward. Do not ask the customer for their one-time authentication code.
For a provider or bank decline, interpret the response's payment-result and decline fields using the service's definitions. Do not assume that the same code means the same thing across all providers. Explain the appropriate next step to the customer without disclosing security-sensitive decline details, while retaining the code needed by the technical team for investigation.
For a network timeout or server error, restoring the connection does not establish the outcome of the original transaction. Investigate the payment record and verified notifications. Do not automatically interpret a server error as meaning that nothing was processed.
If payment is complete but the order still appears unpaid, check the payment-to-order matching and how the application processed the notification. Customers may leave the page after paying, so do not make order updates depend solely on the browser's return to your site. The remedy is to reflect the verified result correctly in the local record, not to collect payment again.
Hypothetical example: A payment timeout on a 100-unit order
Suppose a payment request is sent for an order worth 100 currency units, after which the customer's page times out. At that moment, the number of completed charges is unknown; it cannot be assumed to be zero.
The investigating team matches the order reference to the payment and attempt IDs. In the correct live account, the provider's current record confirms one completed charge of 100 units for the matching amount and currency. If the local order still appears unpaid, the team fixes the notification-processing and record-update issue.
Initiating another 100-unit charge at this point could bring the total collected to 100 + 100 = 200 units if the second charge also succeeds. This example illustrates the risk of an uncontrolled repeat; it does not claim that two charges actually occurred. If the provider reports authorization only, do not say that 100 units have been collected. If the provider's outcome also remains unclear, keep the investigation open.
If the customer reports seeing two entries, match each one to its provider references and current status. Do not initiate a refund or cancellation until you have distinguished two separate charges from an authorization and its related capture. If two charges are confirmed, identify the transaction to correct by its reference and follow the provider's appropriate procedure.
Distinguish a technical retry from a new payment attempt
Repeating the same technical request after a connection error is not the same as the customer making a new payment attempt with corrected details after a confirmed decline.
For a technical retry, use an idempotency key if the provider supports it. This key allows a repeated request to be recognized as the same operation within defined conditions. Before retrying, check that the API operation and version support it, the scope across accounts, regions and endpoints, the key's validity period, and the retry conditions. A permitted retry of the same operation must use the same key and the same parameters.
Do not generate a new key for every error. Changing the key or retrying after its retention period has expired may create a new transaction. If parameters need to change, first establish that the original transaction did not succeed and is no longer processing. If the permitted window has expired while the outcome remains unknown, investigate rather than continuing with either the old key or a new one.
If automatic retries are already running in the integration, do not start a second, manual retry process. Keep retries and status checks within the provider's documented intervals and limits. There is no waiting period or retry count that applies to every service.
Escalate unresolved transactions safely
While keeping the transaction under review, record the person responsible, the time of the last check and the next follow-up time. Tell the customer that the outcome has not yet been verified and ask them not to pay again until the investigation is complete. Do not make unverified promises about a charge or refund.
For an initial support request through a verified provider support channel, include the order, payment and attempt references; event time and time zone; amount and currency; environment and account identifiers; an error code or message with sensitive data removed; and the latest status-check result and relevant notification record. State clearly which checks have been completed and which discrepancy remains unresolved.
Extract the necessary fields rather than sending complete raw logs. Do not request a full card number, card security code, one-time authentication code, secret API key or client secret, and do not include them in a support ticket, screenshot or log. Remove unnecessary personal data as well, and use an authorized, secure channel.


