Error Scenarios
These scenarios describe common conditions that can prevent an API transaction or hosted checkout journey from completing.
Scenario summary
| Scenario | Condition | Impact | Recommended action |
|---|---|---|---|
| Hosted payment URL no longer valid | The hosted payment URL can no longer be used. | The checkout journey cannot continue. | Create a new Payment Intent and redirect the member using the new hosted payment URL. |
| Callback state mismatch | The returned state differs from the value retained for the checkout journey. | The callback must not be trusted for continued processing. | Reject the callback and initiate a new journey if required. |
| Unauthorized request | Required credentials are missing or invalid. | The API request is rejected. | Confirm client_id, client_secret and mandatory x-captoken values. |
| Rate limit exceeded | Too many requests were submitted within a short period. | The API returns 429 Too Many Requests. | Reduce request bursts and retry using controlled backoff. |
| Temporary service unavailability | The platform or a required downstream service is temporarily unavailable. | The API returns a temporary availability error such as 503. | Retain the diagnostic identifiers and retry later. Respect Retry-After when it is returned. |