Error codes
Last updated: Aug 15th, 6:03am
The following error codes can be returned in the cancel URL the merchant receives. The format for the error codes returned in the cancel URL is: example.com/checkout/cancel?errorcode=internal_server_error&token=XXX
.
Error code | Description |
---|---|
order_not_confirmed |
The order hasn't been validated. You might see this error when the order status is not in the PAYER_ACTION_REQUIRED state or when a payment method hasn't been attached to the order. Call Confirm payment method. |
system_config_error |
An authentication failure has occurred or the request is invalid. |
invalid_payment_method |
An unexpected payment method is attached to the order. This can happen when the wrong order ID is attached to a payment method. Confirm the order ID is correct. |
payee_not_enabled_for_payment_method |
You aren't authorized to accept this payment method. |
payment_method_change_not_allowed |
Related to idempotency check. Make sure the following aren't missing or incorrect: the PayPal-Request-Id , the payment ID, and the payment payload. |
processing_error |
Related to idempotency check. The PayPal-Request-Id and payload match an order, but the order is no longer in the PENDING state. |
min_amount_required_by_payment_method |
The transaction amount doesn't meet the minimum transaction requirement of the payment method. |
payment_method_error |
The transaction initiation was declined by the payment method. |
declined_by_payment_method |
The transaction initiation was declined by the payment method. |
currency_not_supported_by_payment_method |
The currency specified isn't supported by the payment method. |
country_not_supported_by_payment_method |
The country specified isn't supported by the payment method. |
invalid_expiry_date |
Expiry date should be a date in future and within the threshold for the payment source. |
unsupported_processing_instruction |
The specified processing_instruction is not supported for the given payment_source. Please refer to processing_instruction for the list of payment_source that can be specified with this value. |
order_complete_on_payment_approval |
A processing_instruction of ORDER_COMPLETE_ON_PAYMENT_APPROVAL is required for the specified payment_source. |
order_completion_in_progress |
The order was created with processing_instruction of ORDER_COMPLETE_ON_PAYMENT_APPROVAL . The customer has approved the payment and PayPal is still in the process of capturing the order on your behalf as instructed. Please try your request again. |
internal_server_error |
This error includes: encryption/description, database connection issues, timeouts, and unknown errors. |
payment_error |
All other errors. |