createCheckoutSession

suspend fun createCheckoutSession(accountId: String, amount: TransferV2Money? = null): Pair<CheckoutSession?, NetworkingError?>

Mints a checkout client secret for accountId.

Return

The session, and any networking error.

Parameters

accountId

The account the token may read.

amount

Locked charge amount. Omit it and the session stays read-only.