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.
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.
Name | Type | Description |
---|---|---|
UNIFIED_PAYMENTS_ALREADY_SHOWN | string | Occurs when you attempt to show a Unified Payments instance
multiple times. |
SHOW_LOAD_CONTAINER_SELECTOR | string | Occurs when a DOM element cannot be located using the
supplied CSS Selector string. |
SHOW_LOAD_INVALID_CONTAINER | string | Occurs when an invalid container parameter is
supplied. |
SHOW_LOAD_ERROR | string | Occurs when there is an issue loading the payment
iframe. |
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. |
SHOW_PAYMENT_TIMEOUT | string | Occurs when an error is encountered during the handling of a
payment option. |
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.
Name | Type | Description |
---|---|---|
UNIFIEDPAYMENTS_VALIDATION_PARAMS | string | Occurs when there's an issue with params supplied to
UnifiedPayments constructor. |
UNIFIEDPAYMENT_PAYMENT_PARAMETERS | string | Occurs when no valid payment parameters exist while
initializing button. |
CREATE_TOKEN_TIMEOUT | string | Occurs when the createToken call was unable to
proceed. |
CREATE_TOKEN_XHR_ERROR | string | Occurs when a network error is encountered while attempting
to create a token. |
(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:
stringmessage :string
A human-readable explanation of the error that has occurred.
Type:
stringreason :string
A reason corresponding to the specific error that has occurred.
Type:
string