Introduction

K- Payment Gateway provided by KASIKORNBANK Public Company Limited is the online payment service to facilitate merchants and offers customers online payment options. Follow this guide to integrate KBank Payment Gateway.


Supported Countries

  • Thailand 🇹🇭

Available Payment Methods

KBank PG supports THB(฿) currency.

Payment TypePayment Method KeyCurrencyStatusSandbox Availability
QR CODEKBANK_PROMPTPAYTHB
Credit CardsKBANK_CREDIT_CARDTHB,USD
Installments by Credit CardKBANK_INSTALLMENTTHB
AliPay WalletKBANK_ALIPAYTHB
Wechat PayKBANK_WECHATTHB
UnionPayKBANK_UNIONPAYTHB

Miscellaneous Details

  • Webhook Settings : Copy the Webhook URL provided in the PortOne Admin Dashboard & share it with KBank team to configure the Webhook URL for your account.
  • Callback URL Settings : Share https://api.portone.cloud/api/handleShopperRedirect/KBANK?callback=true as Callback URL with KBank team to configure the Callback URL for Card payments, Alipay and UnionPay payment methods.

Refund Details

Payment MethodCredit CardsInstallmentsInstallments (Merchant Sponsored)PromptPayAliPayUnionPayWeChat
Can be voided? (Full refund before settlement of transaction)
Partial Refund Allowed? (Only on settled transactions)
Multiple Refunds Allowed? (Only on settled transactions)

Sandbox

Credentials

KeyValue
Public keypkey_test_21555FTFHWDdKh1ypiI29MEAZRNLmQPw4p1B5
Secret keyskey_test_21555dD22KoKIBjUFZP70kZD9rgwqcuwPPz2c
MID Installments401882301190001
MID AliPay501772212141001
MID WeChat501662212141001
MID Cards(THB)401992212141001
MID Cards(USD)402992212141001

Test cards data (3Ds supported)

Card BrandCard numberNameValid throughCVVOTPResult
MASTERCARD5239620007270264-AnyAny123456Approval
MASTERCARD5404888000072727-AnyAny123456Approval
MASTERCARD5404888005380836-AnyAny123456Approval
MASTERCARD5411768003140872-AnyAny123456Approval
VISA4417706600005830-AnyAny123456Approval
JCB3564580000056476-AnyAny123456Approval
MASTERCARD2221000604647064-AnyAny123456Declined
MASTERCARD5596886582263266-AnyAny123456Declined
MASTERCARD5149504001969007-AnyAny123456Declined
MASTERCARD5265434283867885-AnyAny123456Declined

Test cards data (Non 3Ds)

Card BrandCard numberNameValid throughCVVResult
MASTERCARD5431289719925031-AnyAnyApproval
MASTERCARD5565694828631115-AnyAnyApproval
MASTERCARD2221000604647064-AnyAnyDeclined
MASTERCARD5596886582263266-AnyAnyDeclined
VISA4024007134786226-AnyAnyApproval
VISA4485169016314923-AnyAnyApproval
VISA4877300371267473-AnyAnyDeclined
VISA4147602662715373-AnyAnyDeclined
JCB3536353014086177-AnyAnyApproval
JCB3540000981507917-AnyAnyDeclined
JCB3528730936342392-AnyAnyDeclined
JCB3532598050794027-AnyAnyDeclined

UnionPay Test cards data

Card BrandCard numberValid throughCVVSMS CodePin
TPN621094776400002710/30456-111111
TPN910000976400001003/25123-111111
TPN910000876400002503/25123-111111
TPN910000976400001503/25123-111111
TPN625094700000001412/33123111111(PC) or 123456(Mobile)111111
TPN625094600000001612/33123111111(PC) or 123456(Mobile)111111

User login details for accessing KBank sandbox dashboard - QR Simulator

URLUsernamePassword
KBank sandbox dashboard[email protected]Portone@123

AliPay test account details

Buyer AccountLogin PasswordPayment Password
[email protected]111111111111

Use following values in embedded JS code to pay via KBank channel

    "pmt_channel": "KBANK",
    "pmt_method": { Any of above given payment method keys },