我一直在研究和测试 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,我登录并确认付款。在我确认之前一切都很好,然后每次都会发生奇怪的事情。所以当我确认付款时,这就是发生的事情:
Your account information has changed. Either you clicked "Pay" more than once but the original transfer was already made, or you just received money. To check, please view your account History and make sure you want to perform this transaction.
和:
At this time, we are unable to process your request. Please return to facilitator account's Test Store and try another option.
经过这一切,似乎没有付款,但情况是付款已发送到“企业邮箱”。我只是用它登录,但我必须在那里确认付款。
为什么会这样?为什么没有得到证实?
我今天才开始用paypal。我整天(+晚上)都在与它作斗争,现在我不得不问了。
最佳答案
Have you tried to clear your cookies from the browser. I tried with a fresh browser and it work
正如@chell 所说。完美运行。
关于 Paypal 沙箱无法处理请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18775951/