我正在尝试将Skrill支付网关集成到我的网站。但是在成功付款后,我无法从status_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="mygmail@gmail.com"/>
<input type="hidden" name="status_url" value="http://website.com/pages/verify.php"/>
<input type="hidden" name="status_url2" value="mygmail@gmail.com"/>
<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 = "mygmail@gmail.com";
//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;
}
?>
答案 0 :(得分:0)
要从网关捕获返回的状态,您需要在下面提及正确的返回网址,即在您的网站上
<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