Save payment details
Integrate with our API to create a secure token to represent a customer’s payment details. There are two ways to save the payment details in our vault and get a secure token:
- Save the payment details when running a sale.
- Save the payment details without running a sale.
When you create your request, you can assign an ID to the secure token. If you don’t, our gateway assigns an ID to the secure token. We return the secureTokenID and the token in the response, which the merchant uses in follow-on transactions, including:
- Create a payment with card details or bank account details.
- Create a refund with card details or bank account details.
- Look up BIN information.
Note: For more information about secure tokens, go to Tokenization.
Before you begin
Authenticate your requests before making API calls. If your request fails, see Errors.
Run a sale and save payment details
To run a sale and save the payment details, send a Create a Payment request. In the request, include a credentialOnFile object and set the tokenize parameter to true.
Our gateway runs the sale and saves the customer’s payment details in our vault. In the response, we return a secureTokenId and the token that the merchant can use for follow-on transactions.
Note: For more information about how to run a sale, go to Run a card sale or Run a sale with bank account details.
Save payment details
To save a customer’s payment details without running a sale, send a POST request to:
Request parameters
To create the body of your request, use the following parameters:
Request
Example request
Response fields
If your request is successful, we return a token that you can use instead of the customer’s payment details in follow-on transactions.