Authorize and Capture Payment
A 4-step recipe with dLocal. We can help you get access.
Recipe · 4 steps
Authorize and Capture Payment
with dLocal
Authorize a card payment and capture it once it is confirmed AUTHORIZED.
- Authorize a card transaction without capturing funds by setting capture=false on the card object.
- Retrieve the payment to confirm whether it reached the AUTHORIZED state before attempting to capture.
- Capture the full authorized amount, completing the transaction.
- Release the authorization hold when the payment did not reach the AUTHORIZED state.
What you'll need to have ready
- country: ISO 3166-1 alpha-2 country code (e.g. BR).
- currency: ISO-4217 three-letter currency code (e.g. BRL).
- amount: Transaction amount to authorize and capture.
- orderId: Merchant-provided order identifier.
- holderName: Cardholder name as printed on the card.
- cardNumber: Primary account number of the card.
- expirationMonth: Card expiration month (1-12).
- expirationYear: Card expiration year (four digits).
- cvv: Card verification value.
- payerName: Full name of the payer.
- payerEmail: Email address of the payer.
- payerDocument: National identification document of the payer.
For your developer
Arazzo workflow d-local:authorize-and-capture-payment, 4 operations: createAuthorization → retrievePayment → captureAuthorization → cancelAuthorization. Specs on APIs.io.