These docs are for v3.2.6. Click to read the latest docs for v4.3.0.

How to integrate

Server to Browser Integration (Support 3DS and Non-3DS transactions)
--


Construct payment form

Get started by constructing the simplest way of accepting credit card payment via '2C2P SecurePay API'.

Prepare payment request (S2B)

Submit payment request from backend side to 2C2P PGW securely. this allow 2C2P PGW to redirect customer to the Issuer's ACS page to complete 3DS authentication when necessary.

Read payment response

Read encrypted response message from 2C2P PGW securely.

Alternative payment request method


Prepare payment request with JavaScript event

If you require to do some client side processing or AJAX call before making the final payment submission to 2C2P PGW, use JavaScript My2c2p.submitForm to trigger the submission after your client side process or AJAX finished.

Prepare payment request with manual payment submission

If you require to submit payment from your backend instead of frontend, you can use My2c2p.getEncrypted function to get encrypted card information and use it on the payment request from your backend.

Server to Server Integration (Only Non-3DS transaction)
--


Construct payment form

Get started by constructing the simplest way of accepting credit card payment via '2C2P SecurePay API'.

Prepare payment request (S2S)

Submit payment request from backend side directly to 2C2P PGW backend server. this allows secure and uninterrupted authorization process between merchant server and 2C2P PGW server.