capabilities.work

Tokenize Card and Charge

A 3-step recipe with dLocal. We can help you get access.

Recipe · 3 steps

Tokenize Card and Charge

with dLocal

Tokenize a card and use the token to create a card payment.

  1. Tokenize the supplied card for use in future payments, returning a card_id token in place of the raw card number.
  2. Retrieve the stored card token to confirm it persisted before charging it.
  3. Create a DIRECT card payment that references the stored card token so the raw card number is never re-sent.
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 in the specified currency.
  • orderId: Merchant-provided order identifier.
  • holderName: Cardholder name as printed on the card.
  • cardNumber: Primary account number of the card to tokenize.
  • 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:tokenize-card-and-charge, 3 operations: createCard → retrieveCard → createPayment. Specs on APIs.io.