OptionalbaseExplicit, never inferred. sandbox -> api-sandbox.gocardless.com, live -> api.gocardless.com.
OptionalexitWhere the hosted flow sends payers who cannot proceed (e.g. unsupported bank).
OptionalfallbackLets a billing request fall back from instant bank payment to collecting a Direct Debit mandate when the instant rails are unavailable. Off by default: fallback payments confirm on debit timing (days), not seconds.
OptionalfetchInjected for tests.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalgoPinned GoCardless-Version request header, overridable when GoCardless dates a new one.
OptionalmaxAutomatic retries for transport-level trouble only (network failure, timeout, HTTP 5xx, 429) with exponential backoff. Default 2. Safe for mutating calls: billing-request/refund creates and cancel actions carry an Idempotency-Key, and a replayed flow create only re-issues an authorisation URL for the same billing request. Business errors (validation, invalid_state, permissions) are NEVER retried here.
OptionalpaymentScheme enablement varies per account — override the conservative defaults.
OptionalrequestAbort a hung GoCardless connection after this many milliseconds (default 30000; GoCardless's own server-side limit is 29s). The timer covers the whole exchange including the response body read. Timed-out requests are safe to retry (see maxNetworkRetries) and surface as retryable psp_unavailable errors.
OptionalsleepInjected backoff sleep for retry tests; defaults to real setTimeout.
Webhook endpoint secret(s) from the dashboard. Accepts several at once so a rotation needs no cutover — any active secret verifying wins.
Read-write access token from the GoCardless dashboard (server-side only).