Errors
PAYMENT_FAILED
PAYMENT_FAILED
The payment processor returned a transient failure (network error, processor outage, gateway timeout) while authorizing the order. The user's card was not necessarily declined — the processor was unable to give a definitive answer.
Summary
| Field | Value |
|---|---|
| HTTP status | 400 |
errorCategory | payment |
retryable | true |
When This Fires
POST /v1/marketplace/orders/place— payment authorization (Stripe, Clover, or other configured processor) returned an error that does not indicate a definitive decline.
Recommended Action
This is one of the few retryable: true errors. Backoff and retry with the same idempotency key:
- Wait briefly (1–3s with jitter).
- Resubmit
POST /v1/marketplace/orders/placewith the sameIdempotency-Keyheader — the server will deduplicate if the original attempt eventually succeeded. - After 2–3 failed retries, surface "we're having trouble processing your payment" and let the user pick a different payment method.
Do not discard the idempotency key between retries — that risks a double-charge.
Example
Code