【问题标题】:Paypal Sandbox integration贝宝沙盒集成
【发布时间】:2011-12-16 11:44:30
【问题描述】:

我正在使用简单的表单提交到 paypal 沙箱 url 'https://www.sandbox.paypal.com/au/cgi-bin/webscr'。

<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='biz@ee.com'>
  <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!">

如果我已经登录到我的沙盒帐户,一切正常,我被重定向到支付页面,我的商家测试商店显示金额,右侧显示支付选项。但是,如果我从沙盒注销,然后通过支付页面进行支付,它会重定向到登录沙盒贝宝。当买家购买商品时,他为什么需要登录沙盒。为什么不能直接访问卖家测试商店。

【问题讨论】:

    标签: paypal


    【解决方案1】:

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

    【讨论】:

    • 谢谢,这意味着当我使用真实的paypal帐户时不会发生这种情况。在实际情况下,买家将被重定向到商家付款页面,无需任何登录要求。
    猜你喜欢
    • 2023-03-25
    • 2015-12-29
    • 2012-10-12
    • 2012-07-22
    • 2018-01-21
    • 2018-07-29
    • 2013-08-24
    • 1970-01-01
    • 2023-04-10
    相关资源
    最近更新 更多