ธนาคารที่รองรับ
Bank | Code |
---|---|
ธนาคารกสิกรไทย (KBANK) | installment_kbank |
ธนาคารกรุงไทย (KTC FLEXI) | installment_ktc_flexi |
ธนาคารกรุงศรี (Krungsri Consumer) | installment_krungsri |
ธนาคารกรุงศรี (Krungsri First Choice) | installment_firstchoice |
ธนาคารไทยพาณิชย์ (SCB) | installment_scb |
ตัวอย่างขั้นตอนการชำระเงินผ่านระบบ ChillPay : Installment (KBANK)

ตัวอย่างขั้นตอนการชำระเงินผ่านระบบ ChillPay : Installment (KTC FLEXI)

ตัวอย่างขั้นตอนการชำระเงินผ่านระบบ ChillPay : Installment Krungsri Consumer (Loan Card)

ตัวอย่างขั้นตอนการชำระเงินผ่านระบบ ChillPay : Installment Krungsri First Choice

ตัวอย่าง การเรียก Request Payment Service (Code ภาษา PHP)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://sandbox-appsrv2.chillpay.co/api/v2/Payment/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "MerchantCode=XXXX&OrderNo=00001&CustomerId=100001&Amount=350000&PhoneNumber=0890000000&Description=Test-Payment&ChannelCode=installment_kbank&Currency=764&LangCode=TH&RouteNo=1&IPAddress=127.0.0.1&ApiKey=XXXX&CreditMonth=6&ShopID=02&CustEmail=test@test.com&CheckSum=XXXX",
CURLOPT_HTTPHEADER => array(
"Cache-Control: no-cache",
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
ตัวอย่าง การเรียก Request Payment Service (Code ภาษา C# .NET)
var client = new RestClient("https://sandbox-appsrv2.chillpay.co/api/v2/Payment/");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("form-data", "MerchantCode=XXXX&ChannelCode=installment_kbank&RouteNo=1&OrderNo=00001&Amount=350000&CustomerId=C000001&Description=test-payment&PhoneNumber=0880999999&LangCode=TH&ApiKey=XXXX&CreditMonth=6&ShopID=02&CustEmail=test@test.com&CheckSum=XXXX", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);