Integrate KiliCow Pay with your platform using our simple API. All payment processing is handled by KiliCow Pay — you only need to interact with our secure endpoints.
Endpoint: POST https://rdnslvhost.in.net/payinr/payin
Content-Type: application/x-www-form-urlencoded
merchant_key – Your unique KiliCow Pay merchant keyamount – Payment amount (e.g., 500.00)currency – Currency code (e.g., INR)txn_id – Unique transaction/order ID
merchant_key=abc123xyz
amount=500.00
currency=inr
txn_id=ORD98765
{
"status": "redirect",
"message": "Redirect to payment",
"payment_url": "https://secure.rdnslvhost.in.net/pay/redirect-url"
}
{
"status": "error",
"message": "Invalid merchant key"
}
After payment, KiliCow Pay will send a POST request to your configured callback URL.
Content-Type: application/json
{
"appNo": "HMP01",
"merchantCode": "ORD98765",
"orderCode": "GATEWAY123456",
"status": "1",
"amount": "500.00",
"realAmount": "500.00",
"sign": "a1b2c3d4e5..."
}
unset($data['sign']);
ksort($data);
$str = "";
foreach ($data as $k => $v) {
$str .= "$k=$v&";
}
$str .= "key=YOUR_SECRET_KEY";
$verify_sign = md5($str);
If the signature matches and status == "1", mark the payment as successful.
{ "message": "success" }
If you've set a webhook URL in your merchant panel, KiliCow Pay will notify you on every successful transaction.
{
"txn_id": "ORD98765",
"status": "success",
"amount": "500.00",
"order_sn": "ORD98765",
"sign": "ABCDEF123456..."
}
ksort($data);
$str = "";
foreach ($data as $k => $v) {
$str .= "$k=$v&";
}
$str .= "key=MERCHANT_SECRET_KEY";
$sign = strtoupper(md5($str));
Return 200 OK from your webhook to confirm receipt.
If you need assistance with integration: