Example description: Card acceptance using CustomerID / CardID

In this demo example you have Custom Form enabled to pay creating a CustomerID / CardID first. After that CustomerID is used to process next transactions and acceptance rules will request a second validation depending on different settings:

  • The third transaction for the same customer will require always, at least,CVV.
  • Payments above 90€ will require 3DS validation.
  • If total amount per customer in a day exceeds 725€, transaction will be refused.

After creating CustomerID in the first payment, new examples will show the different behavior of the rule engine for each one-click payment.

Fill the form with a valid name, email and a valid card* number (or use default values clicking on the EXAMPLE DATA button).

cardTokenId:
customerId:
cardId:
enrollmentId:
transactionId:

25.00

75.00

400.00

Card data

Use your card
Select card and enter CVV
Loading...
Secure payment by CentralPay

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.

Step 3

CardTokenId, currency, amount, and order data are sent to the API from the form. CentralPay creates a CustomerId with a CardId that can be used to make recurrent Transactions.

Step 4

The Payment Authentication Response, Customer ID / Card 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.

After sending the CardTokenId to the CentralPay API the Transaction is processed. The merchant will receive a JSON with the response message