Zazu.CheckoutSessions (zazu v0.2.1)

Copy Markdown View Source

One-off hosted checkout sessions. No list, update, or delete; sessions are created and inspected by id.

Summary

Functions

Calls POST /api/checkout_sessions.

Calls GET /api/checkout_sessions/:id.

Functions

create(client, attributes)

@spec create(Zazu.Client.t(), map()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls POST /api/checkout_sessions.

Required attributes: account_id, amount, success_url.

get(client, id)

@spec get(Zazu.Client.t(), String.t()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls GET /api/checkout_sessions/:id.