Receive a Bolt payment result on the same form fields as the standard payment callback.
Use this endpoint to receive a Bolt payment result. The handler accepts the same form postback fields as the standard payment callback and returns an empty body.
Method
POST
Endpoint
/partner/bolt/paymentCallback
Environment
| Environment | URL |
|---|---|
| Test Environment | https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback |
| Production Environment | https://api.payu.in/partner/bolt/paymentCallback |
Sample Request
curl -X POST https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback \
-H "Content-Type: application/x-www-form-urlencoded" \
--form 'mihpayid=403993715521855092' \
--form 'txnid=TXN1001' \
--form 'amount=1000.00' \
--form 'status=success' \
--form 'mode=CC' \
--form 'productinfo=Order' \
--form 'firstname=John' \
--form '[email protected]' \
--form 'phone=9999999999' \
--form 'hash=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' \
--form 'bankcode=HDFC' \
--form 'bank_ref_num=1234567890' \
--form 'udf1=custom_value_1' \
--form 'udf2=custom_value_2' \
--form 'udf3=custom_value_3' \
--form 'udf4=custom_value_4' \
--form 'udf5=web' \
--form 'error=E000' \
--form 'error_Message=No Error' \
--form 'net_amount_debit=1000.00' \
--form 'PG_TYPE=CC-PG' \
--form 'unmappedstatus=captured' \
--form 'key=smsPlusDemo'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class PartnerRequest {
public static void main(String[] args) throws Exception {
String body = "mihpayid=403993715521855092&txnid=TXN1001&amount=1000.00&status=success&mode=CC&productinfo=Order&firstname=John&[email protected]&phone=9999999999&hash=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&bankcode=HDFC&bank_ref_num=1234567890&udf1=custom_value_1&udf2=custom_value_2&udf3=custom_value_3&udf4=custom_value_4&udf5=web&error=E000&error_Message=No Error&net_amount_debit=1000.00&PG_TYPE=CC-PG&unmappedstatus=captured&key=smsPlusDemo";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback"))
.header("Content-Type", "application/x-www-form-urlencoded")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}import requests
url = "https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback"
headers = {
"Content-Type": "application/x-www-form-urlencoded"
}
payload = {
"mihpayid": "403993715521855092",
"txnid": "TXN1001",
"amount": "1000.00",
"status": "success",
"mode": "CC",
"productinfo": "Order",
"firstname": "John",
"email": "[email protected]",
"phone": "9999999999",
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"bankcode": "HDFC",
"bank_ref_num": "1234567890",
"udf1": "custom_value_1",
"udf2": "custom_value_2",
"udf3": "custom_value_3",
"udf4": "custom_value_4",
"udf5": "web",
"error": "E000",
"error_Message": "No Error",
"net_amount_debit": "1000.00",
"PG_TYPE": "CC-PG",
"unmappedstatus": "captured",
"key": "smsPlusDemo"
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback",
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "mihpayid=403993715521855092&txnid=TXN1001&amount=1000.00&status=success&mode=CC&productinfo=Order&firstname=John&[email protected]&phone=9999999999&hash=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&bankcode=HDFC&bank_ref_num=1234567890&udf1=custom_value_1&udf2=custom_value_2&udf3=custom_value_3&udf4=custom_value_4&udf5=web&error=E000&error_Message=No Error&net_amount_debit=1000.00&PG_TYPE=CC-PG&unmappedstatus=captured&key=smsPlusDemo",
CURLOPT_HTTPHEADER => ["Content-Type: application/x-www-form-urlencoded"],
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($curl);
curl_close($curl);const body = new URLSearchParams({
"mihpayid": "403993715521855092",
"txnid": "TXN1001",
"amount": "1000.00",
"status": "success",
"mode": "CC",
"productinfo": "Order",
"firstname": "John",
"email": "[email protected]",
"phone": "9999999999",
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"bankcode": "HDFC",
"bank_ref_num": "1234567890",
"udf1": "custom_value_1",
"udf2": "custom_value_2",
"udf3": "custom_value_3",
"udf4": "custom_value_4",
"udf5": "web",
"error": "E000",
"error_Message": "No Error",
"net_amount_debit": "1000.00",
"PG_TYPE": "CC-PG",
"unmappedstatus": "captured",
"key": "smsPlusDemo"
});
const response = await fetch("https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body
});
console.log(await response.text());using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> {
["mihpayid"] = "403993715521855092",
["txnid"] = "TXN1001",
["amount"] = "1000.00",
["status"] = "success",
["mode"] = "CC",
["productinfo"] = "Order",
["firstname"] = "John",
["email"] = "[email protected]",
["phone"] = "9999999999",
["hash"] = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
["bankcode"] = "HDFC",
["bank_ref_num"] = "1234567890",
["udf1"] = "custom_value_1",
["udf2"] = "custom_value_2",
["udf3"] = "custom_value_3",
["udf4"] = "custom_value_4",
["udf5"] = "web",
["error"] = "E000",
["error_Message"] = "No Error",
["net_amount_debit"] = "1000.00",
["PG_TYPE"] = "CC-PG",
["unmappedstatus"] = "captured",
["key"] = "smsPlusDemo",
});
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());require "net/http"
uri = URI("https://test-partnerapilayer.payu.in/apilayer/partner/bolt/paymentCallback")
request = Net::HTTP::Post.new(uri)
request["Content-Type"] = "application/x-www-form-urlencoded"
request.set_form_data({"mihpayid": "403993715521855092", "txnid": "TXN1001", "amount": "1000.00", "status": "success", "mode": "CC", "productinfo": "Order", "firstname": "John", "email": "[email protected]", "phone": "9999999999", "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "bankcode": "HDFC", "bank_ref_num": "1234567890", "udf1": "custom_value_1", "udf2": "custom_value_2", "udf3": "custom_value_3", "udf4": "custom_value_4", "udf5": "web", "error": "E000", "error_Message": "No Error", "net_amount_debit": "1000.00", "PG_TYPE": "CC-PG", "unmappedstatus": "captured", "key": "smsPlusDemo"})
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
puts response.body
Mandatory ParametersParameters marked with * are mandatory.
| Parameter | Description |
|---|---|
Content-Type* | string Send the body as application/x-www-form-urlencoded. |
mihpayid | string PayU payment id. |
txnid | string Merchant transaction id. The handler also accepts txnId. |
amount | string Amount. |
status | string Payment status posted by PayU for Checkout Plus. |
mode | string Mode. |
productinfo | string Productinfo. |
firstname | string Firstname. |
email | string Email. |
phone | string Phone. |
hash | string Response hash. Verify with SHA-512 before trusting the postback. See custom_blocks/HashingSample.md for the payment hash preimage. |
bankcode | string Bankcode. |
bank_ref_num | string Bank ref num. |
udf1 | string Udf1. |
udf2 | string Udf2. |
udf3 | string Udf3. |
udf4 | string Udf4. |
udf5 | string Udf5. |
error | string Error. |
error_Message | string Error Message. |
net_amount_debit | string Net amount debit. |
PG_TYPE | string PG TYPE. |
unmappedstatus | string PayU status field on the Checkout Plus postback. |
key | string Merchant key. Used to look up the partner transaction. |
Sample Response
BoltHashController.paymentCallback returns an empty body.