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.
Step 2
Card data is sent to CentralPay through the browser with token.js. CentralPay stores the card data and returns the CardToken ID to the merchant form.
Step 3
CardToken ID, currency, amount, and order data are sent to the API from the form. CentralPay creates a Transaction and returns Transaction ID 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

Card data

Choose your card and enter CVV   
Secure payment by CentralPay
CentralPay is an Electronic Money Issuer authorised by the Banque de France (CIB 17138).

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=  \