Here in the wordpress plugin Premium Press I have integrated payson payment gateway, but there is one small problem: the MD5 field is not being able to take in any values and not working. Please help me with this.
This is the code for taking input for MD5 values in a form:
<input type="hidden" name="MD5" value=" < ?php echo get_option('gateway_payson_receiver');('SellerEmail'); ('OkUrl'); ('GuaranteeOffered'); ('ExtraCost'); ('Cost'); ?>"/>
This is what have to be calculated in another file send.php:
$MD5string = $SellerEmail . ":" . $Cost . ":" . $ExtraCost . ":" . $OkUrl . ":" . $GuaranteeOffered . $Key;
$MD5Hash = md5($MD5string);
('ExtraCost'); ('Cost'); ?>"/>
I am trying to test it in: https://www.payson.se/testagent/default.aspx
But for MD5 its not calculating any values.
Please help me if possible.
Edit: I put the extra spaces after value=” and also inside < ?php because stackoverflow was not recognising the code and not displaying, that is not a problem. Inside the real code there is no space there.
You don’t give many details, but I couldn’t help noticing this:
value=".According to the Payson page you supplied,
When you display that form, you should have already available the following variables:
and output a hidden form field like