针对PayPal网站付款标准进行移动优化的结帐 [英] Mobile optimized checkout for PayPal Website Payments Standard

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

问题描述

我如何才能按照PayPal在其移动网站付款标准"页面

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天全站免登陆