UniportDocs

Errors

When a payment fails, onError receives an Error. Failures from Uniport’s backend are normalized into a UniportError.

UniportError

A UniportError has a message, a stable code, and optionally details and the HTTP status. Timeouts, quote failures, deposit submission failures and status failures are all normalized before they reach your UI.

Codes

codeWhen
VALIDATION_ERRORA request was missing or had an invalid field.
QUOTE_FAILEDNo quote could be produced for this route or amount.
DEPOSIT_SUBMISSION_FAILEDThe deposit couldn’t be submitted for tracking.
STATUS_CHECK_FAILEDThe payment’s status couldn’t be fetched.
REQUEST_TIMEOUTThe backend didn’t answer within 20 seconds.
NETWORK_ERRORThe backend couldn’t be reached.
INTERNAL_ERRORThe backend failed unexpectedly.
UNKNOWN_ERRORAnything else.