PayFanout API reference
    Preparing search index...
    • Maps a non-2xx Paysafe answer onto the unified taxonomy. A 429 or a 5xx is rate_limited or psp_unavailable, retryable, whatever code it carries: sendWrite reads a 5xx as an outcome it must look up, and a code must not turn that into a final answer. Otherwise a mapped code decides, then a 402 is card_declined and any other status invalid_request. The message is the catalog's, never Paysafe's own; the body stays untouched on raw.

      Parameters

      • httpStatus: number
      • body: unknown

      Returns PayFanoutError