Charge for a plan
Create a payment when a customer subscribes or renews, and send them to the hosted checkout.reference for your own invoice/subscription id and metadata to carry any
context you’ll want back on the webhook.
Activate on settlement
Don’t grant access on the browser redirect alone. Wait for the webhook (or pollGET /checkout/:id) and activate the subscription
when the payment is settled.
Usage-based billing
For metered billing, aggregate usage over the period and create one payment for the total at the end of the cycle, passing the line-item summary inmetadata.
Paying your users out
To pay a user (payouts, refunds, revenue share), include apayout_address on
the payment, or move money with the agent — see
Agents & AI.