我一直在研究和测试PayPal使用的沙盒系统。
这让我感到困惑,我创建了一些测试账户。目前,我已经从我的网站创建了一个表单。一个“立即购买”按钮。
它按照预期工作:
<form id="checkout" target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" value="myemail@myaddres.com" name="business">
<input type="hidden" value="Order" name="item_name">
<input type="hidden" value="1000" name="amount">
<input type="hidden" value="50" name="tax">
<input type="hidden" value="SEK" name="currency_code">
<input type="hidden" value="namehere" name="first_name">
<input type="hidden" value="lastnamehere" name="last_name">
<input type="hidden" value="emailaddressaere" name="email">
<input type="hidden" value="addresshere" name="address1">
<input type="hidden" value="cityhere" name="city">
<input type="hidden" value="SE" name="country">
<input type="hidden" value="0" name="address_override">
<input type="hidden" value="http://www.mydomain.com/thanks" name="return">
<input type="hidden" value="http://www.mydomain.com/checkout" name="cancel_return">
<input type="hidden" value="uniqueid" name="invoice">
<input type="hidden" value="sale" name="paymentaction">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="charset" value="utf-8">
<input type="submit" value="Buy" />
</form>
我确定(我认为)HTML是正确的(只是输入应该以/结束;>)
在PayPal上,我登录并确认付款。一切都很顺利,直到我确认付款后,每次都会发生奇怪的事情。因此,当我确认付款时,以下情况发生:
您的帐户信息已更改。要么您单击了“支付”多次,但原始转账已完成,要么您刚刚收到了钱。请查看您的帐户历史记录,并确保您要执行此交易。
还有:
目前,我们无法处理您的请求。请返回到方便账户的测试商店并尝试其他选项。
现在,在所有这些之后,似乎没有进行任何付款,但事实是已向“业务电子邮件”发送了付款。我只是用它登录,但是我必须确认付款。
为什么会发生这种情况?为什么不能确认它?
我今天刚开始使用PayPal。我一整天(+夜晚)都在与它斗争。现在我只好问问了。