我在回调成功 url 中收到此消息“此参数是必需的 - 'product_id'” 。
<?php
require('EgoPaySci.php');
try {
$oEgopay = new EgoPaySci(array(
'store_id' => 'STORE ID',
'store_password' => 'STORE PASSWORD'
));
$sPaymentHash = $oEgopay->createHash(array(
'amount' => '3.00',
'currency' => 'USD',
'description' => 'My payment',
'cf_1' => 'My custom data'
));
} catch (EgoPayException $e) {
die($e->getMessage());
}
?>
<form action="<?php echo EgoPaySci::EGOPAY_PAYMENT_URL; ?>" method="post">
<input type="hidden" name="hash" value="<?php echo $sPaymentHash ?>" />
<input type="submit" value="Confirm Payment" />
</form>
有关详细信息,请查看此https://www.egopay.com/developers.html
谢谢