%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 // Timezeone needs to be set date_default_timezone_set('Asia/Kolkata'); echo $dateTime = date("Y:m:d-H:i:s"); function getDateTime() { global $dateTime; return $dateTime; } /* Function that calculates the hash of the following parameters: - Store Id - Date/Time(see $dateTime above) - chargetotal - currency (numeric ISO value) - shared secret */ function createHash($chargetotal, $currency) { // Please change the store Id to your individual Store ID $storeId = "3344004055"; // NOTE: Please DO NOT hardcode the secret in that script. For example read it from a database. $sharedSecret = "rrQ68|x*yQ"; $stringToHash = $storeId . getDateTime() . $chargetotal . $currency . $sharedSecret; $ascii = bin2hex($stringToHash); return hash("sha256", $ascii); } ?> <html> <head><title>IPG Connect Sample for PHP</title></head> <body> <p><h1>Order Form</h1> <form method="post" action="https://test.ipg-online.com/connect/gateway/processing"> <input type="hidden" name="txntype" value="sale"> <input type="hidden" name="timezone" value="Asia/Kolkata"/> <input type="hidden" name="txndatetime" value="<?php echo getDateTime() ?>"/> <input type="hidden" name="hash_algorithm" value="SHA256"/> <input type="hidden" name="hash" value="<?php echo createHash( "10.00","356" ) ?>"/> <input type="hidden" name="storename" value="3344004055"/> <input type="hidden" name="mode" value="payonly"/> <input type="hidden" name="paymentMethod" value="M"/> <input type="text" name="chargetotal" value="10.00"/> <input type="hidden" name="currency" value="356"/> <input type="hidden" name="oid" value="<?=substr(time(),0,8)?>"/> <input type="hidden" name="ipgTransactionId" value=""/> <input type="hidden" name="language" value="en_US"/> <input type="hidden" name="authenticateTransaction" value="true"/> <input type="hidden" name="responseFailURL" value="https://www.shardahospital.org/icici/fail.php"/> <input type="hidden" name="responseSuccessURL" value="https://www.shardahospital.org/icici/success.php"/> <input type="submit" value="Submit" name="submit"> </form> </body> </html>