Disculpa, obviamente tambien tengo el formulario:
Código PHP:
$sPaymentUrl = 'https://www.egopay.com/payments/pay/form';
$aStoreData = array(
'store_id' => 'xxxxxxxxxxxx',
'store_password' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
);
$aPayment = array(
'amount' => 2.00,
'currency' => 'USD',
'description' => 'My Details',
/*
* 8 Custom fields, hidden from users, limited to 100 chars.
* You can retrieve them only from your callback file.
*/
'cf_1' => 'Test memo',
//'cf_2' => '',
//'cf_3' => '',
//'cf_4' => '',
//'cf_5' => '',
//'cf_6' => '',
//'cf_7' => '',
//'cf_8' => '',
);
$aForVerify = $aPayment;
unset($aForVerify['description']);
ksort($aForVerify);
$sVerify = hash('sha256', $aStoreData['store_password'] . '|' . implode('|', $aForVerify));
?>
<form action="<?php echo $sPaymentUrl; ?>" method="post">
<input type="hidden" value="<?php echo $aStoreData['store_id']; ?>" name="store_id" />
<input type="hidden" value="<?php echo $aPayment['amount']; ?>" name="amount" />
<input type="hidden" value="<?php echo $aPayment['currency']; ?>" name="currency" />
<input type="hidden" value="<?php echo $aPayment['description']; ?>" name="description" />
<input type="hidden" value="<?php echo $aPayment['cf_1']; ?>" name="cf_1" />
<!-- You can choose from one of the available images. Other images are:
https://www.egopay.com/cdn/frontend/images/ego_88x31_bb.png
https://www.egopay.com/cdn/frontend/images/ego_88x31_ob.jpg
https://www.egopay.com/cdn/frontend/images/ego_120x60_bb.png
https://www.egopay.com/cdn/frontend/images/ego_120x60_b.png
https://www.egopay.com/cdn/frontend/images/ego_120x60_2.png
-->
<input type="image" name="cartImage" src="https://www.egopay.com/cdn/frontend/images/ego_88x31_o2.png" />
</form>