%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php /** * import checksum generation utility * You can get this utility from https://developer.paytm.com/docs/checksum/ */ require_once("PaytmChecksum.php"); /* initialize an array */ $paytmParams = array(); /* body parameters */ $paytmParams["body"] = array( /* Find your MID in your Paytm Dashboard at https://dashboard.paytm.com/next/apikeys */ "mid" => "Sharda19341643693331", /* Enter your order id which needs to be check status for */ "orderId" => "20210404 ", ); /** * Generate checksum by parameters we have in body * Find your Merchant Key in your Paytm Dashboard at https://dashboard.paytm.com/next/apikeys */ $checksum = PaytmChecksum::generateSignature(json_encode($paytmParams["body"], JSON_UNESCAPED_SLASHES), "PcOf0leMf%0xxah%"); /* head parameters */ $paytmParams["head"] = array( /* put generated checksum value here */ "signature" => $checksum ); /* prepare JSON string for request */ $post_data = json_encode($paytmParams, JSON_UNESCAPED_SLASHES); /* for Staging */ $url = "https://securegw-stage.paytm.in/v3/order/status"; /* for Production */ // $url = "https://securegw.paytm.in/v3/order/status"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); 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($response); die;