Processing transactions
Send sales, authorizations, captures, verifications, voids, and refunds to one endpoint, and add your own data to each transaction.
Every transaction you process goes to one endpoint, POST /v1/transactions. The type field in the request decides what the transaction does, from charging a payment method to refunding an earlier sale. You can also attach your own data to a transaction and set the text that appears on the customer's statement.
For what each transaction type means and how a follow-on transaction relates to the one it acts on, see the Transactions Overview.
Process a transaction
Complete these tasks in order:
- Decide whether you need a sale, an authorization and capture, or a verification, and when to void instead of refund. See Choose a transaction type.
- Charge a payment method in one step, or check it without charging it. See Charge a payment.
- Hold funds now and collect them later. See Authorize and capture a payment.
- Cancel or return money from an earlier transaction. See Void or refund a transaction.
Use these guides to add data to any transaction:
- Add your own data. Store key-value pairs, such as an order number, on a transaction. See Add metadata to a transaction.
- Set the statement text. Send the text that the customer sees on their statement for this transaction. See Add a dynamic statement descriptor.
Updated 20 minutes ago
Did this page help you?
