INTRODUCTION
FYI: we are still updating it. But you can start integrating.
FYI: we are still updating it. But you can start integrating.
(We have sample for php, you can check rsa2Sign() method in KESS_RSA.php)
API_BASE_URL = Dev url base: https://clientdev.kesspay.io/merchantapi/v1
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | generate_pre_order_token |
out_trade_no | String | YES | YOUR_UNIQUE_ID |
seller_code | String | YES | SELLER_CODE |
description | String | YES | description... |
amount | double | YES | 1 |
currency | Integer | YES | USD |
redirect_url | OPTIONAL | if provided, after done visa/master deposit confirmation, it'll redirect to that url instead of showing the html content | |
commission_rate | Integer | OPTIONAL | 5 |
*NOTE
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | create_user |
phone_number | Integer | No | ***** |
string | No | *****@gmail.com | |
first_name | String | YES | ***** |
last_name | String | YES | ***** |
address | String | YES | Floor 4, S&C Office Space Building, Street 1984A, Sen Sok, Phnom Penh, Kampuchia (Cambodia) |
currency | string | YES | USD |
birthday | date | OPTIONAL | 1970-12-01 |
gender | Integer | OPTIONAL | m |
*NOTE
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | update_user |
phone_number | Integer | YES | ***** |
first_name | String | YES | ***** |
last_name | String | YES | ***** |
address | String | YES | Floor 4, S&C Office Space Building, Street 1984A, Sen Sok, Phnom Penh, Kampuchia (Cambodia) |
currency | string | YES | USD |
birthday | OPTIONAL | 1996-12-01 | |
gender | Integer | OPTIONAL | m |
PAY BY TOKEN:
Transfer balance from wallet to wallet.
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | update_user |
pre_order_token | String | YES | TOKEN |
Transfer balance from wallet to wallet.
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | transfer |
from_user_id | String | YES | from_user_id |
to_user_id | String | YES | to_user_id |
amount | double | YES | 10 |
currency | String | YES | USD |
fees_amount | double | No | 0.05 |
fees_currency | string | No | USD |
*NOTE
*Params Request
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | transfer |
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | tokenize_local_card |
user_id | Integer | YES | Id of user who owns card. |
holder_name | String | YES | Card holder’s name (Encryption required). |
bank_id | String | YES | Id of bank you have selected which bank is properly. |
bank_code | String | YES | Card number (Encryption required). |
*Params Response
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | tokenize_bank_account |
user_id | Integer | YES | CARD_OWNER_USER_ID |
holder_name | String | YES | Your user holder name (Encryption required). |
bank_id | BigInteger | YES | 4 |
bank_number | String | YES | Bank account number (Encryption required). |
call_back | String | YES | https://callback.url |
*Params Response
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | tokenize_visa_master |
user_id | Integer | YES | CARD_OWNER_USER_ID |
sourceOfFunds | Json | YES | sourceOfFunds (Encryption required). |
holder_name | string | YES | Your user holder name (Encryption required). |
*Params Response
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | deposit_by_local_card |
token | string | YES | TOKEN |
pre_order_token | string | YES | PRE_ORDER_TOKEN |
amount | double | YES | 5 |
currency | String | YES | USD |
*Params Request
*Params Response
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | deposit_by_bank_account |
token | String | YES | Get token after you add bank account successfully. |
pre_order_token | String | YES | if you use pre order, pre_order_token is required. |
amount | double | YES | Amount to deposit. |
currency | String | YES | Currency deposit |
*Params response
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | deposit_by_visa_master |
security_code | String | YES | SECRUITY_CODE |
token | String | YES | TOKEN |
pre_order_token | String | YES | PRE_ORDER_TOKEN |
amount | double | YES | 1 |
currency | String | YES | USD |
*Params Request:
Params response:
html_confirm_payment:
To implement on web page please add redirect_url on Generate Preorder Token. So when confirm success we will redirect to that url with response
Example:
https://callbackurl.test?result = base64. So you can get from query string result and decode base64 to see response json
{If on Generate Preorder Token has no redirect_url you will got response as html after submit confirm on html_confirm_payment ( you will got blank screen because html input is hidden )
Example:
< body >Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | confirm_payments |
user_id | Integer | YES | SECRUITY_CODE |
token | String | YES | TOKEN |
password | password | YES | PASSWORD |
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | block_money |
user_token | string | YES | token |
amount | double | YES | 123 |
currency | password | YES | USD |
reference | String | YES | Desc.. |
Parameters:
Field | Type | Required | Description |
---|---|---|---|
service | String | YES | cancel_block_money |
transaction_ref | string | YES | TR2007-98816440081055770 |
*Params Request