For lifetime deals and one-off purchases billed as a plan (add-ons, consumption models), use One-Time Plans instead.
Link vs. charge
There are two ways to take a one-time payment.- Link (
payments.create): builds a hosted payment link. The customer opens theurland 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, nourl.
Create a payment link
Returns aPayment with a url. Redirect the customer to it to collect payment.
- TypeScript
- Python
- Go
- Java
- PHP
- cURL
- CLI
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.- TypeScript
- Python
- Go
- Java
- PHP
- cURL
- CLI
Parameters
Retrieve a payment
List payments
Cancel a payment link
Cancels a pending link so it can no longer be paid.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
amountis in cents — minor units of the currency- Tax is calculated automatically and added on top of
amount payments.chargerequires a vaulted payment method on the customer- Charges cannot be canceled
- A link can only be canceled while
pending