我正在尝试将skrill支付网关集成到我的网站。但在成功付款后,我无法从我的状态url访问skrill$_post变量。
因此,我无法从我的站点捕获用户详细信息。
<form action='https://www.moneybookers.com/app/payment.pl' METHOD='POST'><p class="text-center">
<input type="hidden" name="amount" value="0.10">
<input type="hidden" name="pay_to_email" value="[email protected]"/>
<input type="hidden" name="status_url" value="http://website.com/pages/verify.php"/>
<input type="hidden" name="status_url2" value="[email protected]"/>
<input type="hidden" name="return_url" value="http://website.com/pages/marketplace.php"/>
<input type="hidden" name="language" value="EN"/>
<input type="hidden" name="amount" id="amounttopay" />
<input type="hidden" name="currency" value="USD"/>
<input type="hidden" name="detail1_description" value="my desc"/>
<input type="hidden" name="detail1_text" value="Buy product"/>
<input type="submit" class="btn btn-success btn-sm btn-block" value="Pay!"/>
但是我不能访问verify.php中的skrill变量
<?php
$MBEmail = "[email protected]";
//This if statement is not working since there is no $_POST variables from skrill.
if ($_POST['status'] == 2 && $_POST['pay_to_email'] == $MBEmail)
{
// Valid transaction.
//update the database.
}
else
{
// Invalid transaction. Bail out
exit;
}
?>
最佳答案
要从网关捕获返回的状态,您需要在下面适当地提到返回url,即在您的网站上
<input type="hidden" name="return_url" value="http://website.com/pages/marketplace.php"/>
试着查一下文档,
https://www.skrill.com/fileadmin/templates/main/res/material/documents/pdf/getting-started/skrill-integration-manual-en.pdf