All-in-One API Integration
Combining all the most popular payment solutions in a single package, eWAY’s Rapid 3.1 API also includes fraud prevention, transparent redirect, and direct connection to help developers create secure, perfectly rendered payment pages on all devices.
Charge returning customers without re-requesting their billing details! Token Payments allows you to save the details of your customers securely on eWAY’s servers and bill them whenever they make new purchases. Capturing and updating a customer’s details can be done through any of eWAY’s payment APIs, making integration simpler once you are taking payments.
Create a Token
To create a Token Customer, set the “Method” to “CreateTokenCustomer” and the “TotalAmount” to 0.
Simple Direct Connection JSON REST Create Token Example
Authorization: Basic (see Authentication in the API reference)
Charge a Token
To charge a customer, simply use their TokenCustomerID when submitting the request and set the “Method” to “TokenPayment”. Note that if the customer is completing the transaction, a CVN is still required.
Simple Direct Connection JSON REST Charge Token Example
Update a Token
To update a token customer, just provide the updated details in the request, and set the “Method” to “UpdateTokenCustomer”.
Simple Direct Connection JSON REST Update Token Example
Query a Token
To get the details stored for a Token Customer, simple make a request with the Token Customer ID
Simple Query Token Example
For more details, check out the Rapid 3.1 API Token documentation