Skip to main content
A payment is a standalone one-time charge with no subscription or plan attached. Commet calculates tax, generates an invoice, and sends a receipt on every payment automatically.
For lifetime deals and one-off purchases billed as a plan (add-ons, consumption models), use One-Time Plans instead.
There are two ways to take a one-time payment.
  • Link (payments.create): builds a hosted payment link. The customer opens the url and pays with any card. Vaults the payment method on confirmation.
  • Charge (payments.charge): bills a customer’s already-vaulted payment method off-session. No customer interaction, no url.
Returns a Payment with a url. Redirect the customer to it to collect payment.
amount is in cents. 25000 is $250.00.

Parameters

Charge a saved payment method

Bills a customer’s vaulted payment method off-session. The customer must have a payment method on file.

Parameters

Retrieve a payment

List payments

Cancels a pending link so it can no longer be paid.
Only a link that has not been paid or started processing can be canceled. Charges cannot be canceled.

The Payment object

Statuses

  • pending: The link was created and is waiting for the customer to pay.
  • processing: The payment is being confirmed with the provider.
  • succeeded: The payment completed and an invoice was generated.
  • requires_action: The customer must complete an extra step such as 3D Secure.
  • failed: The payment did not go through.
  • canceled: The link was canceled before payment.
failed and requires_action are not terminal for links: the customer can reopen the same payment link and pay with another card, as long as the link hasn’t expired.

View in the dashboard

Navigate to Payments. Each payment shows its status, amount, tax, customer, and the generated invoice.

Limitations

  • amount is in cents — minor units of the currency
  • Tax is calculated automatically and added on top of amount
  • payments.charge requires a vaulted payment method on the customer
  • Charges cannot be canceled
  • A link can only be canceled while pending