PayPal 网站支付标准的移动优化结账 [英] Mobile optimized checkout for PayPal Website Payments Standard

查看:19
本文介绍了PayPal 网站支付标准的移动优化结账的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How can I get the "mobile optimized checkout experience" to work as described by PayPal on their Mobile Website Payments Standard page https://www.x.com/developers/paypal/products/mobile-website-payments-standard?

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

The docs say if you have a BuyNow button without any fancy options, when a user on a mobile device clicks it, it should send them to a mobile optimized checkout experience. However, all I get is the same PayPal checkout page that one gets on a desktop browser. My simple button code looks like:

<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 按钮在移动设备上做正确的事".

Am I missing something here or is PayPal just screwing up here? This seems like the most fundamental thing they could do to help support mobile payments. I don't want to mess with their Express Checkout stuff or any of their APIs. I just want the standard BuyNow buttons to "do the right thing" on a mobile device.

推荐答案

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

Try updating your example with an email address other than name@domain.com. I used your code exactly as is with email=seller@designerfotos.com (an example email PayPal uses for sample buttons) and it worked just fine. Went into the mobile optimized website payments standard experience.

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

Also, make sure your account (email address) that you're testing with doesn't have any shipping and tax rules defined in the profile settings. These are marked as currently unsupported at https://www.x.com/developers/paypal/products/mobile-website-payments-standard. You can pass in shipping and tax values as button parameters and those should work.

<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>

这篇关于PayPal 网站支付标准的移动优化结账的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆