missingAccessTokenCode constant

String const missingAccessTokenCode

Code of the error raised when PayEngine has no merchant session token.

The credit card and bank account forms, the Apple Pay / Google Pay calls and getFraudMonitorSession fail with a PlatformException with this code, missingAccessTokenMessage as its message and details['reason'] set to noCallback, callbackFailed or emptyToken. When the callback threw, details['cause'] holds its error. The PayEngine widget sends the same code, message and reason in an error event to its onEvent.

Implementation

static const String missingAccessTokenCode = 'MISSING_ACCESS_TOKEN';