Viewing file: first.php (1.34 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$MerchantID = "BDSKUATY"; // provided by billdesk
$SecurityID = "bdskuaty"; // provided by billdesk
$CheckSumKey = "G3eAmyVkAzKp8jFq0fqPEqxF4agynvtJ"; // provided by billdesk
echo $ts=rand(100000,1000000000);
die();
$CustomerID='APR'.$ts;
$grand_sum=500.00;
$application_id=1234;
$user_id=123;
$url_response='https://www.srishticampus.com/payment/response.php';
$str = trim($MerchantID).'|'.trim($CustomerID)."|NA|".trim($grand_sum)."|NA|NA|NA|INR|NA|R|".trim($SecurityID)."|NA|NA|F|".trim($application_id).'|'.trim($user_id)."|NA|NA|NA|NA|NA|".trim($url_response);
$checksum = hash_hmac("sha256",$str,$CheckSumKey,false);
$checksum_value = strtoupper($checksum);
$msg=trim($MerchantID).'|'.trim($CustomerID)."|NA|".trim($grand_sum)."|NA|NA|NA|INR|NA|R|".trim($SecurityID)."|NA|NA|F|".trim($application_id).'|'.trim($user_id)."|NA|NA|NA|NA|NA|".trim($url_response).'|'.trim($checksum_value);
//echo $msg;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Test Page</TITLE>
</HEAD>
<BODY>
<form method="POST" action="https://uat.billdesk.com/pgidsk/PGIMerchantPayment">
<br>
Test Pament for Rs <?php echo $grand_sum; ?>
<br>
<input type="hidden" name="msg" value="<?php echo $msg; ?>">
<input type="Submit" value="Payment">
</form>
</BODY>
</HTML>
|