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).


Step 1
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.
Step 2
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.
Step 3
CardToken ID / Customer ID are ready to make a new API request from merchant's server.
Step 4
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.
Step 5
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.
Step 6
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


19,00€

290,00€

3900,00€

Card data

Use your card
Your card data is stored securely. More information»
Select card and enter CVV
Secure payment by CentralPay
CentralPay is a PCI-DSS compliant payment gateway.




curl -v https://test-api.centralpay.net/v2/rest/cardToken \
-H 'Origin:' \
-d card[number]=  \
-d card[expirationMonth]=  \
-d card[expirationYear]= \
-d card[cvc]=  \
-d card[country]=  \
-d card[holderName]=  \
-d card[holderEmail]=  \
-d merchantPublicKey=  \

22