payments

Cria sessão de Stripe Checkout (assinatura ou recarga one-time)

  • uiMode = "hosted" retorna url; redirecione o cliente.
  • uiMode = "embedded" retorna clientSecret; renderize com <EmbeddedCheckout>.
post/v1/payments/create-checkout-session

Request body

planKeystring required
billingCycle'MONTHLY' | 'YEARLY'
uiMode'hosted' | 'embedded'
rechargeAmountCentsinteger nullable

Topup one-time cobrado junto com o primeiro invoice da assinatura.

Response

Sessão criada

urlstring nullable

Populado quando uiMode=hosted.

clientSecretstring nullable

Populado quando uiMode=embedded.

Changes

Changed in 1 of the 4 revisions of this API.1