Paytm Payment Receipt

“axbUma91750689207048”,
“linkType” => “Retail”,
“linkDescription” => “Test Payment”,
“linkName” => “Test”,
);
if($paytmParams[“body”])
{

/*
* Generate checksum by parameters we have in body
* Find your Merchant Key in your Paytm Dashboard at https://dashboard.paytm.com/next/apikeys
*/
// print_r(json_encode($paytmParams[“body”]));die();
$checksum = PaytmChecksum::generateSignature(json_encode($paytmParams[“body”], JSON_UNESCAPED_SLASHES), “axbUma91750689207048”);

$paytmParams[“head”] = array(
“tokenType” => “AES”,
“signature” => $checksum
);

$post_data = json_encode($paytmParams, JSON_UNESCAPED_SLASHES);

/* for Staging */
$url = “https://securegw-stage.paytm.in/link/create”;

/* for Production */
$url = “https://securegw.paytm.in/link/create”;

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(“Content-Type: application/json”));
$response = curl_exec($ch);
print_r($response);
}
echo “404”;

Apply Online

You have Successfully Subscribed!