Example description: Single payment using Card Token ID
In this demo example you have Custom Form with enabled support for verification for a single Payment using Card Token ID. One click transaction
can be splitted in some steps to show each part of the process.
Fill the form with a valid name, email and a valid card* number (or use default values clicking on the EXAMPLE DATA button).
Collecting the personal information and credit card data. All required fields must be filled before sending data.
Select the Remember my card option to store your card.
Card data is sent to CentralPay through the browser with token.js. CentralPay stores the card data and returns the CardTokenID to the merchant form.
Using the CardToken ID, a new Customer ID is requested.
CardToken ID / Customer ID are ready to make a new API request from merchant's server.
CardToken ID / Customer ID, currency, amount and other data are sent to CentralPay to check an enrollment. An enrollment object, which contents
the ACS bank URL and the paReq (Payment Authentication Request), is returned from CentralPay.
The paReq is sent via POST to the ACS bank URL ("https://test-threedsecure.centralpay.net/acs") provided in the enrollment object.
A paRes (Payment Authentication Response), is returned from the ACS bank.
The Payment Authentication Response, Card Token ID, Enrollment ID, currency, amount, and order data are sent to the API by submitting the form.
CentralPay creates a Transaction and returns TransactionId with JSON response to the merchant.
Click on the button to fill the form fields:
Test Card number: 4000 0000 0000 0002
Expiration date: valid date
CVV: 3 digit number