CreateCheckoutSessionRequest

data class CreateCheckoutSessionRequest(val accountId: String, val amount: TransferV2Money? = null)

Request body for POST /v1/checkout_sessions.

The host backend mints this with a secret key. The SDK calls it only to replace a chk_sess_ token that has expired, and only when a secret key is configured.

A session can create a transfer only when amount is set. Gson omits a null amount, which leaves the session read-only.

Constructors

Link copied to clipboard
constructor(accountId: String, amount: TransferV2Money? = null)

Properties

Link copied to clipboard
@SerializedName(value = "account_id")
val accountId: String

The account the checkout token may read.

Link copied to clipboard
val amount: TransferV2Money? = null

The locked charge amount. Refresh must replay it or the new session cannot charge.