【问题标题】:Mobile optimized checkout for PayPal Website Payments Standard针对 PayPal 网站付款标准的移动优化结帐
【发布时间】:2023-03-06 19:20:01
【问题描述】:

如何让“移动优化结帐体验”按照 PayPal 在其移动网站支付标准页面 https://www.x.com/developers/paypal/products/mobile-website-payments-standard 上的描述工作?

文档说,如果您的 BuyNow 按钮没有任何花哨的选项,当移动设备上的用户点击它时,它应该将他们发送到移动优化的结帐体验。但是,我得到的只是桌面浏览器上的相同 PayPal 结帐页面。我的简单按钮代码如下所示:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="name@domain.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Test Item">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

我在这里遗漏了什么还是 PayPal 只是在这里搞砸了?这似乎是他们可以做的最根本的事情来帮助支持移动支付。我不想弄乱他们的 Express Checkout 东西或他们的任何 API。我只想让标准的 BuyNow 按钮在移动设备上“做正确的事”。

【问题讨论】:

    标签: mobile paypal


    【解决方案1】:

    尝试使用 name@domain.com 以外的电子邮件地址更新您的示例。我将您的代码与 email=seller@designerfotos.com 完全相同(PayPal 用于示例按钮的示例电子邮件),它工作得很好。进入移动优化网站支付标准体验。

    另外,请确保您用于测试的帐户(电子邮件地址)没有在配置文件设置中定义任何运输和税收规则。这些在https://www.x.com/developers/paypal/products/mobile-website-payments-standard 标记为当前不受支持。您可以将运费和税金值作为按钮参数传递,这些应该可以工作。

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="seller@designerfotos.com">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="Test Item">
    <input type="hidden" name="amount" value="1.00">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="button_subtype" value="services">
    <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    

    【讨论】:

    • 关于运费/税金计算器/其他高级参数(例如“选项”),我还想指出一件事:“这些被标记为当前不受支持”。注意当前
    • 我故意让代码示例中的电子邮件匿名。 :) 我确实删除了所有的运输和税收规则,这就成功了。谢谢指点!
    猜你喜欢
    • 2011-12-22
    • 2013-10-24
    • 1970-01-01
    • 2012-07-08
    • 2011-05-05
    • 2016-04-04
    • 2013-05-18
    • 1970-01-01
    相关资源
    最近更新 更多