Widget Sessions

Create a chat payment session

Create a chat/web payment session.

Call this from your server with your secret API key. Hand the returned session_id to your frontend and mount the widget: Maven.createPayment({ sessionId }).mount("#slot").

Theme, labels, and fields are set once per project in the dashboard (Chat Payments tab → Customize) and applied automatically.

post/v1/widget-sessions

Request

  • Base URL: https://api.trymaven.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trymaven.com/v1/widget-sessions
  • Auth: HTTP bearer

Request body

projectstring required

Project UUID or slug

amount_centsinteger required

Charge amount in cents. For mode='tokenize' may be 0.

gatewaystring required

stripe | authorizenet | braintree | shift4 | fiserv | jpmorgan | webhook

modestring
descriptionstring nullable
stripe_accountstring nullable

Stripe Platform Mode only: connected account (acct_...) on YOUR Stripe platform

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.