Overview
Call KLiCKPAY from your server only. Base URL https://pay.klicksev.net
Before integration, send KLiCKPAY:
- Your server outgoing IP, for the whitelist
- Your RSA public key only
Integration requires you to provide an RSA Public Key (1024 bit). It can be generated from the following web page (https://travistidwell.com/jsencrypt/demo/).
Send only RSA Public Key. Keep the private key to generate signature in codes.
KLiCKPAY then gives you:
- Merchant code — the
MerchantCodeon every call - AES key — encrypt and decrypt the
Dataparameter - KLiCKPAY RSA public key — verify KLiCKPAY’s signature on the response and on the callback
Production site: klicksev.net. Reply the text success when KLiCKPAY calls your Notify URL or payout verification URL.
Callback IP
KLiCKPAY sends callbacks (NotifyUrl) and payout verification (ReturnUrl) from IP 34.87.162.255. Add it to your firewall allowlist, and still verify the Signature.
| Key | Who creates it | Who keeps it | Use |
|---|---|---|---|
| AES key | KLiCKPAY | You and KLiCKPAY | Encrypt and decrypt Data |
| Merchant RSA private key | You | Your server only | Sign each request |
| Merchant RSA public key | You | Send to KLiCKPAY | KLiCKPAY verifies your signature |
| KLiCKPAY RSA public key | KLiCKPAY | You | Verify KLiCKPAY’s signature |
| KLiCKPAY RSA private key | KLiCKPAY | KLiCKPAY only | KLiCKPAY signs the callback |
Call format
Every POST uses Content-Type: application/json. Version is 0.
Submit Deposit uses this JSON. The other calls use the same fields with a capital first letter: MerchantCode, Data, Signature, Version.
{
"merchantCode": "VND00001",
"data": "<base64>",
"signature": "<base64>",
"version": 0
}Data, then encrypt that same string. AES is AES-256-CBC. The signature is RSA-SHA1. The Encryption tab has the steps.