Skip to Content
Paycose Docs
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, the currency and, when you know it, the payment_method to collect with (a type such as card or promptpay, or a saved method's ID). Send confirm: true to 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.* and charge.*). With capture_method: manual the 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.destination to its acct_… ID, and its share is recorded as owed to it.

Works with

On this page