Skip to main content
Anchor to OrderTransactionErrorCode

OrderTransactionErrorCode

enum

A standardized error code, independent of the payment provider.

Anchor to AMAZON_PAYMENTS_INVALID_PAYMENT_METHODAMAZON_PAYMENTS_INVALID_PAYMENT_METHOD

The payment method was invalid.

Anchor to AMAZON_PAYMENTS_MAX_AMOUNT_CHARGEDAMAZON_PAYMENTS_MAX_AMOUNT_CHARGED

The maximum amount has been captured.

Anchor to AMAZON_PAYMENTS_MAX_AMOUNT_REFUNDEDAMAZON_PAYMENTS_MAX_AMOUNT_REFUNDED

The maximum amount has been refunded.

Anchor to AMAZON_PAYMENTS_MAX_AUTHORIZATIONS_CAPTUREDAMAZON_PAYMENTS_MAX_AUTHORIZATIONS_CAPTURED

The maximum of 10 authorizations has been captured for an order.

Anchor to AMAZON_PAYMENTS_MAX_REFUNDS_PROCESSEDAMAZON_PAYMENTS_MAX_REFUNDS_PROCESSED

The maximum of 10 refunds has been processed for an order.

Anchor to AMAZON_PAYMENTS_ORDER_REFERENCE_CANCELEDAMAZON_PAYMENTS_ORDER_REFERENCE_CANCELED

The order was canceled, which canceled all open authorizations.

Anchor to AMAZON_PAYMENTS_STALEAMAZON_PAYMENTS_STALE

The order was not confirmed within three hours.

The transaction amount exceeds the maximum amount allowed.

The transaction amount is below the minimum amount allowed.

Anchor to AUTHENTICATION_FAILEDAUTHENTICATION_FAILED

The 3D Secure authentication failed.

Anchor to AUTHENTICATION_REQUIREDAUTHENTICATION_REQUIRED

The transaction requires 3D Secure authentication but was attempted without authentication.

Anchor to AUTHORIZATION_EXPIREDAUTHORIZATION_EXPIRED

The authorization has expired.

The issuer declined the transaction, the customer should contact their issuer for more details.

The transaction was cancelled.

The card was declined.

The transaction was declined due to suspected card testing activity.

There is an error in the gateway or merchant configuration.

The issuer declined the transaction without providing a specific reason.

The card is expired.

The transaction was declined due to suspected fraudulent activity.

There was an unknown error with processing the payment.

The address is incorrect.

The card security code (CVC/CVV) is incorrect.

The card number is incorrect.

The PIN entered is incorrect.

The ZIP or postal code doesn't match the one on file.

The payment instrument was declined.

There are insufficient funds available to complete the transaction.

The amount is invalid.

The payment method is not available in the customer's country.

The currency isn't supported.

The format of the CVC is incorrect.

The format of the expiry date is incorrect.

The format of the card number is incorrect.

Anchor to INVALID_PAYMENT_METHODINVALID_PAYMENT_METHOD

The payment method is invalid or not found.

Anchor to INVALID_PURCHASE_TYPEINVALID_PURCHASE_TYPE

This payment method doesn't support the requested transaction type.

Anchor to MERCHANT_ACCOUNT_ERRORMERCHANT_ACCOUNT_ERROR

The transaction couldn't be processed due to an issue with the merchant account.

The transaction was blocked due to the merchant's custom payment risk rule.

Anchor to PAYMENT_METHOD_UNAVAILABLEPAYMENT_METHOD_UNAVAILABLE

The payment method is momentarily unavailable.

Anchor to PAYMENT_METHOD_UNSUPPORTEDPAYMENT_METHOD_UNSUPPORTED

The payment method isn't supported.

Anchor to PAYMENT_PROVIDER_ERRORPAYMENT_PROVIDER_ERROR

The transaction couldn't be processed due to an unexpected error with the payment provider.

The card has been reported as lost or stolen, and the card issuer has requested that the merchant keep the card and call the number on the back.

There was an error while processing the payment.

The transaction retry attempt was declined.

A real card was used but the gateway was in test mode.

Anchor to TRANSACTION_LIMIT_EXCEEDEDTRANSACTION_LIMIT_EXCEEDED

The payment instrument has exceeded the processing frequency limit.

The gateway or merchant configuration doesn't support a feature, such as network tokenization.


Was this section helpful?

•OBJECT

The OrderTransaction object represents a payment transaction that's associated with an order. An order transaction is a specific action or event that happens within the context of an order, such as a customer paying for a purchase or receiving a refund, or other payment-related activity.

Use the OrderTransaction object to capture the complete lifecycle of a payment, from initial authorization to final settlement, including refunds and currency exchanges. Common use cases for using the OrderTransaction object include:

  • Processing new payments for orders
  • Managing payment authorizations and captures
  • Processing refunds for returned items
  • Tracking payment status and errors
  • Managing multi-currency transactions
  • Handling payment gateway integrations

Each OrderTransaction object has a kind that defines the type of transaction and a status that indicates the current state of the transaction. The object stores detailed information about payment methods, gateway processing, and settlement details.

Learn more about payment processing and payment gateway integrations.


Was this section helpful?