To make the integration easier, there are several SDK packages can be used by developer.

You can find all the SDK packages here:

More specifically, there are SDKs for:

  1. The SDK package takes care of the signature calculation and all the details of RESTFUL API communication.

  2. You still need to get merchant private KEY to use the SDK package for each programming language.

How to use

  • include SDK to your code

  • setting your private key and your parameters

#python lang

from ksher_pay_sdk import KsherPay

ksher_pay = KsherPay(appid='mch32625', privatekey='./mch_privkey.pem', pubkey='./ksher_pubkey.pem')

response = ksher_pay.gateway_pay(**{
    'mch_order_no': '77721',
    'total_fee': 90,
    'fee_type': 'THB',
    'channel_list': "alipay,linepay,airpay,wechat,promptpay,truemoney",
    'mch_code': '77721',
    'mch_redirect_url': '',
    'mch_redirect_url_fail': '',
    'refer_url': '',
    'product_name': 'sdd',
    'device': 'H5'