PayFields - Creating a new Payment Token
$0 Auth and Tokenization
For a $0 Auth, use
'0'
(not just0
) as the value in the transaction:
Set to
txnToken
. See below.Set to
auth
. See below.
Sample $0 Authorization Response
Running a Transaction with a Token
To submit a transaction with a token using the API, add the token (which can be found on the customer’s profile page) to your POST request to the /txns endpoint. If the customer’s address information was saved, then it will be automatically included when a Merchant submits a transaction using their token.
Sample card payment and eCheck payment using a saved token:
The API syntax for card-on-file card payments and eCheck payments differs slightly as shown below:
Location | Syntax |
URL |
|
HEADER |
|
BODY (for card payments) |
|
BODY (for eCheck payments) |
|
Notes
Do not use it in combination with Customer, since Customer is a unique token/card holder.
When creating a tokenized card, this creates a unique Customer.