Features
Charges & payments
The moment money actually moves — collecting a payment by card, QR, or bank.
A Payment Intent is how you collect a payment; a Charge is the record of one attempt to move the money — from a customer's card, a PromptPay QR, or another method your providers offer. You never create a Charge yourself: you create a Payment Intent, and confirming it creates the Charge.
How it works
- Create a Payment Intent with
the
amount, thecurrencyand, when you know it, thepayment_methodto collect with (a type such ascardorpromptpay, or a saved method's ID). Sendconfirm: trueto attempt the payment at once, or confirm it later. - Confirming creates a Charge for the attempt. Some methods finish
immediately (charging a saved card); others need an extra step — a QR code
to scan, or a redirect to authorize — described in the Payment Intent's
next_action. See Core concepts → Asynchronous actions. - The result arrives as webhook events (
payment_intent.*andcharge.*). Withcapture_method: manualthe payment is only authorized: capture it, or cancel the Payment Intent to release it. A paid Charge can later be refunded. - List every Charge, or retrieve one by ID. An authorized Charge can also be captured or canceled directly.
There is no POST /charges. Every Charge comes from a Payment Intent: one you
create, or one created for you when an Invoice or a
Subscription is paid, or when a customer pays
through a checkout session or payment link.
Common use cases
- Charging a saved card for a one-time purchase (
confirm: true). - Showing a PromptPay QR code for a customer to scan and pay.
- Collecting for a connected account: set
transfer_data.destinationto itsacct_…ID, and its share is recorded as owed to it.