Skip to main content

Services

The client exposes one service per resource group. Each returns typed objects.
The API Reference is the authoritative list of endpoints, parameters and response fields. The SDK mirrors it; where the SDK has not caught up with a newly released endpoint, call it directly:

A payment, end to end

Handle next_action as described in Next actions. When it asks for an OTP:

Responses

Responses are read-only objects with typed nested resources. Properties are also reachable as array keys, and unknown fields returned by a newer API version are preserved rather than dropped — so an SDK release never hides data from you.

Pagination

List calls return a collection you can iterate page by page, or walk end to end.

Idempotency

Writes send an idempotency key automatically, so a retry inside the SDK never duplicates a payment. Supply your own when the retry might come from outside the process — a queued job that runs twice, a webhook you reprocess:
Per-request options also accept timeout and extra headers.

Errors

Every failure throws. Catch the specific exception where you can act on it, and the base ApiException otherwise.
Remember that a declined payment does not throw: the call succeeds and the failure is on the attempt. See Errors.