PAYMENT_TOKEN_UNSUPPORTED
What PAYMENT_TOKEN_UNSUPPORTED means, why UnsupportedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
UnsupportedErrorNot retryable
@ensforge/sdk
What happened
The registrar does not accept this payment token.
What to show users
| Title | Message | Action |
|---|---|---|
| Payment not accepted | This token is not accepted for registration. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
registration.commit | for an unaccepted token or without ENSv2. |
registration.getPrice | for an unaccepted token or without ENSv2. |
registration.getRenewalPrice | for an unaccepted token or without ENSv2. |
registration.register | for an unaccepted token or without ENSv2. |
registration.renew | for an unaccepted token or without ENSv2. |
Any write can fail with UnsupportedError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("PAYMENT_TOKEN_UNSUPPORTED") narrows to this error. See Handle errors.
Was this page helpful?