2011-10-27 193 views
1

我使用简单的表单提交到PayPal沙箱网址'https://www.sandbox.paypal.com/au/cgi-bin/webscr'。Paypal沙盒集成

<input type="hidden" name="amount" value=11> 
    <input type="hidden" name="cmd" value="_xclick"> 
    <input type="hidden" name="no_shipping" value="1"> 
    <input type="hidden" name="business" value='[email protected]'> 
    <input type="hidden" name="item_name" value="audio"> 
    <input type="hidden" name="currency_code" value=USD> 
    <input type="hidden" name="UseSandbox" value="true"> 
    <input type="hidden" name="return" value=returnURL/"> 
    <input type="hidden" name="cancel_return" value=cancel_url/"> 
    <input type="image" align='centre' src="http://www.paypal.com/en_AU/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> 

如果我已经登录到我的沙盒帐户,一切工作正常,我重定向到支付页面与我的商家测试商店展示量和右侧显示的支付选择。但是,如果我从沙箱注销,然后通过付款页面进行付款,它将重定向到登录到sandbox paypal。当买家购买该项目时,为什么他需要登录到沙箱。为什么不能直接访问卖家测试商店。

回答

4

您必须登录到https://developer.paypal.com/才能访问* .sandbox.paypal.com域上的任何页面。这就是沙盒的工作原理。
由于Sandbox仅用于测试和开发目的,所以没有真正的买家会看到这一点,因为您显然不会将它们发送到Sandbox页面。

+1

谢谢,这意味着当我使用我的真实PayPal帐户时,不会发生这种情况。在实际情况下,买方将被重定向到商家付款页面,而无需任何登录要求。 – AKV

+0

是的,确切地说。 ( – Robert