[Go to site: main page, start]

Skip to main content

Overview

A token is a secure, single-use reference to raw payment data. Instead of passing card numbers or bank account details through your server, you tokenize them first using your Public API key from the browser or client. The resulting token is a UUID you can pass to any transaction endpoint. Tokenization keeps sensitive payment data off your servers, reducing your PCI scope.
Tokens are created client-side using your Public API key. All transaction endpoints use your Private API key server-side.

Create a Token

Request Body

Submit either a creditCard or check object. Do not submit both.

Credit Card

ACH / Check


Response


Using a Token

Pass the token in the payment.token field of any transaction request.
Sale with token
Tokens are valid for a single transaction. If you need to charge the same payment method again, store it to a customer wallet instead.

Storing a Token to a Wallet

To reuse a payment method, add the token to a customer’s wallet. Wallet entries are stored securely in ECRYPT’s vault and can be charged at any time.
Once stored, charge the customer by referencing the customer or wallet ID in payment.stored rather than a token.

Customer Wallet

Learn how to manage stored payment methods and charge customers on file.

Integration Patterns

Hosted Checkout— ECRYPT’s hosted iframe and Dynamic Checkout Page tokenizes card data automatically and returns a token. You never handle raw card data. Terminal — Card-present transactions via ECRYPT terminals do not use the token endpoint. The terminal handles card data capture and communicates directly with the gateway. See the Terminal Guide for details.

Security Notes

  • Always create tokens client-side. Never send raw card numbers to your server.
  • Your Public API key can only be used to create tokens. It cannot initiate transactions or access account data.
  • Tokens are single-use. A token that has already been used in a transaction cannot be used again.
  • To meet PCI DSS requirements, do not log or store raw card numbers at any point in your integration.