Class: AcceptError

AcceptError

This class defines how errors are returned by the Unified Checkout JavaScript.

Members

(static, readonly) Reason Codes - Accept object creation
Possible errors that can occur during the creation of an Accept object.
Properties:
Name
Type
Description
CAPTURE_CONTEXT_INVALID
string
Occurs when you pass an invalid JWT.
CAPTURE_CONTEXT_EXPIRED
string
Occurs when the JWT you pass has expired.
SDK_XHR_ERROR
string
Occurs when a network error is encountered while attempting to load the SDK.
(static, readonly) Reason Codes - Show Errors
Possible errors that can occur during the rendering of payment selection list.
Properties:
Name
Type
Description
CHECKOUT_ERROR
string
Occurs when checkout failed to load.
CLICK_TO_PAY_SDK_LOAD_ERROR
string
Occurs when the
Click to Pay
SDK fails to load.
ENCRYPT_CARD_FOR_SRC_ENROLMENT_ERROR
string
Occurs when the card encryption for SRC enrollment fails to load.
LAUNCH_SRC_CHECKOUT_ERROR
string
Occurs when the SRC checkout fails to load.
SHOW_LOAD_CONTAINER_SELECTOR
string
Occurs when a DOM element cannot be located using the supplied CSS Selector string.
SHOW_LOAD_ERROR
string
Occurs when there is an issue loading the payment iframe.
SHOW_LOAD_INVALID_CONTAINER
string
Occurs when an invalid container parameter is supplied.
SHOW_LOAD_SIDEBAR_OPTIONS
string
Occurs when an invalid container parameter is supplied when sidebar is selected.
SHOW_PAYMENT_TIMEOUT
string
Occurs when an error is encountered during the handling of a payment option.
SHOW_PAYMENT_UNAVAILABLE
string
Occurs when no payment types can be presented to the customer.
SHOW_TOKEN_TIMEOUT
string
Occurs when the createToken call is unable to proceed.
SHOW_TOKEN_XHR_ERROR
string
Occurs when a network error is encountered while attempting to create a token.
UNIFIED_PAYMENTS_ALREADY_SHOWN
string
Occurs when you attempt to show a Unified Payments instance multiple times.
UNKNOWN_ERROR
string
Occurs when an unknown error has occurred.
(static, readonly) Reason Codes - Unified Payments Errors
Possible errors that can occur during the creation of a Unified Payments object.
Properties:
Name
Type
Description
CREATE_TOKEN_TIMEOUT
string
Occurs when the createToken call times out.
CREATE_TOKEN_XHR_ERROR
string
Occurs when a network error is encountered while attempting to create a token.
UNIFIED_PAYMENTS_PAYMENT_PARAMETERS
string
Occurs when no valid payment parameters exist while initializing button.
UNIFIED_PAYMENTS_VALIDATION_PARAMS
string
Occurs when there's an issue with params supplied to UnifiedPayments constructor.
(nullable) correlationId :string
The
correlationId
of any underlying API call that resulted in this error.
Type:
string
(nullable) details :array
Additional error-specific information.
Type:
array
(nullable) informationLink :string
A URL link to online documentation for this error.
Type:
string
message :string
A human-readable explanation of the error that has occurred.
Type:
string
reason :string
A reason corresponding to the specific error that has occurred.
Type:
string
(static, readonly) Reason Codes – Complete API Response Errors
Possible errors that can occur when calling the complete API.
Properties:
Name
Type
Description
COMPLETE_AUTHENTICATION_CANCELED
string
Occurs when the user cancels the authentication process during Cardinal step-up.
COMPLETE_AUTHENTICATION_FAILED
string
Occurs when the complete authentication process fails during Cardinal step-up.
COMPLETE_ERROR
string
Occurs when an error occurs while attempting to process a payment using the complete API.
COMPLETE_IN_PROGRESS
string
Occurs when complete has already been invoked but has not yet finished processing.
COMPLETE_NOT_ALLOWED
string
Occurs if complete is not allowed for this transaction.
COMPLETE_TRANSACTION_CANCELLED
string
Occurs when consumer cancelled the transaction.
COMPLETE_TRANSACTION_FAILED
string
Occurs when consumer transaction fails.
COMPLETE_VALIDATION_ERROR
string
Occurs when there is a validation issue relating to the parameters you have supplied in your complete call.