Skip to main content

Profile Info

How to found#

profileInfo01

Gateway> Integration> Profile

profileInfo02

ksher.place.order or th.redirect.new.order#

Configuration

ParameterTypeRequiredExampleDescription
channel_listString(128)YESalipay,wechat,linepay,airpay,promptpay,truemoney,card,ktc_instalPayment Merchant list support. Value range:

alipay: Alipay Wallet.
wechat: Wechat Wallet.
linepay: Rabbit LINE Pay Wallet.
airpay: Shopeepay Wallet.
truemoney: TrueMoney Wallet.
atome: Atome Buy now pay later. minimum of 20 Baht.
promptpay: PromptPay QR code (Thailand standard bank transfer QR code).
scb_easy: SCB EASY Mobile App. minimum of 20 Baht. (only support on mobile).
bbl_deeplink: Bualuang mBanking Mobile App. minimum of 20 Baht. (only support on mobile).
baybank_deeplink: KMA Krungsri Mobile App. minimum of 20 Baht. (only support on mobile)..
kplus: KPLUS. minimum of 20 Baht. (only support on mobile).
card: Card Gateway. support Visa Card, Master Card, Union Pay Card, TPN Card
ktc_instal: KTC Installment. support only KTC Card. minimum of 3,000 Baht.
kbank_instal: KBANK Installment. support only KBANK Card. minimum of 3,000 Baht.
kcc_instal: Krungsri Installment. support only Krungsri Card. minimum of 3,000 Baht.(5,000 Baht. for 10 months or more than)
kfc_instal: First Choice Installment. support only Krungsri First Choice Card. minimum of 3,000 Baht.

If multiple e-payment method required,a string made up by required e-wallets ,which seperated by "," without space, for example: "promptpay,linepay,airpay,truemoney,atome,card,ktc_instal,kbank_instal,kcc_instal,kfc_instal,scb_easy,bbl_deeplink,baybank_deeplink,kplus,alipay,wechat",card,ktc_instal,kbank_instal,kcc_instal,kfc_instal". will open all of channel your merchant you have. It will send Ksher checkout page to select your wallet want to paid.

If you send only one channel, it will be redirected to each wallet you send.
mch_codeString(256)YES123456acbOrder No. It will be display to customer.
product_nameString(512)YESDemoName or description of your product
refer_urlString(256)YESThe URL of the merchant website homepage. If the merchant doesn't have a website, the merchant app download address can be used for this field.
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
deviceString( )NOH5Value Range:PC, H5;
If you leave this blank, Ksher will determine user device automatically and will return an adaptive page.
member_idString(32)NOABC12345User ID, support ktb storage card function when user ID is transmitted. Can't use Real number like 1,1200,00001, but can use string with number like ABC1234.
colorString(32)NO#FF5C72The color code of banner on payment page, which can be DIY by merchant.
backgroundStringNOhttps://img.examplefile.com/image1.pngThe url of banner background picture on payment page, which can be DIY by merchant.
payment_colorStringNO#FF5C72The color code of payment button, which can be DIY by merchant.
ksher_explainString(256)NOCopyright information on payment page, which can be DIY by merchant.
hide_explainIntegerNO0Value range:0,1;
1: to display an expiration timer.
0: to hide expire time information.
Default is "1".
expire_timeIntegerNO30How long the payment is valid to pay, the unit is minute. If merchant leave this blank, there will be no time limit. expire_time will only close link payment to not allow customer access to pay after link expire. If customer save QR to their local device. Customer still can make payment.
hide_exp_timeIntegerNO1Value range:0,1;
1: to display an expiration timer.
0: to hide expire time information.
Default is "1".
logoStringNOhttps://file.ksher.cn/ksherbd/h5/2020325/201654.pngThe url of logo picture on payment page, which can be DIY by merchant.
langStringNOenThe display language. Value range:
en for English,
cn for Chinese,
th for Thai.
Default is en.
shop_nameStringNOThe Remark or description
instal_fee_payerStringNOWho is carrying charge on installment fee. Value range:1, 2
1 : Means that the consumer bears the installment fee
2 : Indicates that the merchant bears the installment fee
The default value is 1
if you want to customize depend on each channel, please not use "instal_fee_payer", switch to use value "instal_fee_payer_merchant"
exclusiveIntegerNOLimit to open link only one person. Value Range:1, 2
1: Limit people who click on the link to only one person.
2: not limit.
The default value is 1
instal_fee_payer_merchant_channel_listStringNO"ktc_instal,kbank_instal"Which payment channel merchant has to absorb interest rate, available for multiple channels. Example if send "instal_fee_payer_merchant_channel_list":"kbank_instal"
customer who paid by KBANK Installment merchant will bears the installment fee.
But another Installment channels, consumer bears the installment fee.
channel_instal_times_listStringNO"{\"ktc_instal\": [3,4,5], \"kbank_instal\": [4,5,6,7,8]}"Installment period, available for multiple channels. Example if send "channel_instal_times_list": "{\"ktc_instal\": [3,4,5], \"kbank_instal\": [4,5,6,7,8]}"
customer who paid by KTC Installment will display 3/4/5 months available to paid.
KBANK Installment will display 4/5/6/7/8 months available to paid.
Please send this value in JSON Objects convert to string format, don’t send in JSON Objects, because it will error signature.

ksher.refund.order or th.redirect.refund.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.
versionString(32)NOAPI version

ksher.cscanb.order or th.cscanb.new.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code for total_fee. refer to with ISO 4217
notify_urlString(256)NOhttp://www.myweb.com/wepay/pay_notifythe url to receive the asynchronous notification about the status of the payment from Ksher; If merchant leaves this field blank, then there will be no notification to send back to merchant.
img_typeString(3)No"png"Ksher system can generate two types of the QR code image: png, svg. the default is png
productString(512)NOName or description of your product info.
device_idString(32)NOPOS001terminal id from which the request is sent, assigned by merchant.
versionString(32)NO3.0.0version api
expire_timeIntNO60QR time available in second (support Truemoney and PromptPay only)
If merchant leave this blank, expire time will be default on wallet. Example 60 is mean QR can use in 60 second after generate.

th.cscanb.refund.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.
versionString(32)NOAPI version

ksher.bscanc.order or th.bscanc.new.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
productString(512)NOproduct info.
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.

th.bscanc.refund.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.
versionString(32)OPTINALAPI version

ksher.miniapp.order or th.miniapp.new.order#

Configuration

ParameterTypeRequiredExampleDescription
channelString(32)YESwechatValue range: wechat/alipay
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
notify_urlString(256)NOhttp://www.myweb.com/wepay/pay_notifythe url to receive the asynchronous notification about the status of the payment from Ksher; If merchant leaves this field blank, then there will be no notification to send back to merchant.
productString(512)YESProduct name etc. info can be put here.
device_idString(32)NOPOS001the terminal device id from which the request is issued.
sub_openidYESuser id of the sub_appid in WeChat mini progarm
channel_sub_appidYESchannel_sub_appid is your appid in WeChat

th.miniapp.refund.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.
versionString(32)OPTINALAPI version

th.app.new.order#

Configuration

ParameterTypeRequiredExampleDescription
channelString(32)YESwechatValue range: wechat/alipay/airpay/linepay
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
channel_sub_appidString(32)NOwechatappid of app. The parameter channel is required when its value is wechat
notify_urlString(256)NOhttp://www.myweb.com/wepay/pay_notifythe url to receive the asynchronous notification about the status of the payment from Ksher; If merchant leaves this field blank, then there will be no notification to send back to merchant.
redirect_urlString(256)YEShttp://www.myweb.com/wepay/pay_notifythe url of payment result page, to which redirected from Ksher Payment Page.
productString(512)YESProduct name etc. info can be put here.
device_idString(32)NOPOS001the terminal device id from which the request is issued.
refer_urlString(256)YES(only for Alipay)10209url for download merchants app
operator_idString(32)NO10209the cashier ID at the merchant.
versionString(32)NOAPI version

th.app.refund.order#

Configuration

ParameterTypeRequiredExampleDescription
fee_typeString(16)YESTHBCurrency code. refer to with ISO 4217
device_idString(32)NOPOS001the terminal device id from which the request is issued.
operator idString(32)NO10209the cashier ID at the merchant.
versionString(32)NOAPI version