Forum Moderators: coopster
The initial form is posted to a confirmation page. The confirmation page submits the info to hsbc.
On the confirmation page I am now generating the hash value with the following:
$fields=array('OrderId','OrderHash','TimeStamp','CpiReturnUrl',
'CpiDirectResultUrl','StorefrontId','OrderDesc','PurchaseAmount','PurchaseCurrency','TransactionType',
'UserId','Mode','MerchantData'
);
foreach($fields as $field){
$str.="$field=".$_POST[$field]."&";
}
$str=substr($str,0,-1);
$str = str_replace("&","\\&",$str);
Altho the hash values aren't matching up,,,
Is there something wrong with my string?
I also have now moved the hash key out of the web path. Thanks for noticing that.