我已经设置了一个自定义购物车,通过Paypal Payments Standard付款 . 但我还没有完成返回流程和IPN流程并进行了测试,因为我无法在沙盒中运行它 . 我可以让它在我的现金Paypal帐户上运行,但这意味着进行实时付款以获得回流 .

我使用加密的表单数据和沙箱相关的证书/ keys / cert_id,url,测试业务帐户,返回路径

似乎正在通过解密过程 . (如果输入错误的值,它将无法解密) .

我还在另一个标签中登录了我的开发者帐户 .

但我得到以下屏幕:

Screenshot of Paypal result

Cookie不是问题,因为我之前使用的是从未访问过任何一个网站的其他浏览器 .

为什么这会处理我的真实帐户而非我的沙盒帐户的付款?

这是我的数据:

item_name_1 => Test product 1
amount_1 => 0.01
item_number_1 => T-1
quantity_1 => 1
item_name_2 => Test Product 2
amount_2 => 100.00
item_number_2 => AC-H
quantity_2 => 1
tax_2 => 10
invoice => 001
cmd => _cart
return => http://my site/confirm_payment.php
cancel_return => http://my site/cart.php?payment=cancelled
upload => 1
business => **sandbox receiving business account**
cert_id => **sandbox cert_id***

这是表格:

<form id="paypal_form" method="post" action=" https://www.sandbox.paypal.com/cgi-bin/webscr">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="encrypted" value=" -----BEGIN PKCS7-----
MIIIZQYJKoZIhvcNAQcDoIIIVjCCCFICAQAxggE6MIIBNgIBADCBnjCBmDELMAkG
*******************************************************
MaLf05hTBRkTdFPzrnrslM72Ihz6C2NNGn8Ss3lcJ6vxi3dKvyLeUWc=
-----END PKCS7-----">
    <input type="submit" name="paypal" value="Pay via Paypal">
</form>So why would this work in my live account and not the sandbox?