贝宝在移动网站结帐 [英] Paypal Checkout in mobile website
问题描述
我正在开发一个通过paypal销售产品的移动网站。当我点击贝宝按钮时,它将重定向到桌面模式下的贝宝网站。我想改变它到移动模式...
我使用下面的代码
< form action =https://www.paypal.com/cgi-bin/webscrmethod =postname =paypal>
< input type =hiddenname =cmdvalue =_ cart>
< input type =hiddenname =businessvalue =merchant@website.com>
< input type =hiddenname =lcvalue =US>
< input type =hiddenname =item_namevalue =product1>
< input type =hiddenname =amountvalue =1.00>
< input type =hiddenname =currency_codevalue =USD>
< input type =hiddenname =returnvalue =www.website.com/mobile/paypalreturn.php/>
< input type =hiddenname =cancel_returnvalue =www.website.com/mobile//>
< input type =hiddenname =currency_codevalue =USD/>
< input type =hiddenname =shopping_urlvalue =www.website.com/mobile/index.php>
< input type =hiddenname =notify_urlvalue =www.website.com/mobile/paypalnotify.php>
< script> document.paypal.submit();< / script>
< / form>
这里显示桌面版本。我想更改为移动版本..我使用Android和iPhone设备进行了检查。在移动设备也显示桌面版本。我搜索了一下,有些网站表示它会根据设备自动更改,但不会为我工作。
请在此建议修正
预先感谢....
不知道命令 _xclick
,但通过Express Checkout,您可以使用而不是
< input type = hiddenname =cmdvalue =_ express-checkout/>
this
< input type =hiddenname =cmdvalue =_ express-checkout-mobile/>
所以这个URL看起来像 https://www.paypal.com/ ?的cgi-bin / webscr CMD = _express结帐移动&安培;标记= ...
。有关快速结帐手机的详情,请点击此处: https: //cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPECOnMobileDevices 。
尝试寻找类似您的 xclick
cmd参数的解决方案。
I am developing one mobile website for selling products through paypal. When i click the paypal button it redirects to paypal site in desktop mode. i want to change that to mobile mode...
I use the following code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="merchant@website.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="product1">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="www.website.com/mobile/paypalreturn.php"/>
<input type="hidden" name="cancel_return" value="www.website.com/mobile/" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="shopping_url" value="www.website.com/mobile/index.php">
<input type="hidden" name="notify_url" value="www.website.com/mobile/paypalnotify.php">
<script>document.paypal.submit();</script>
</form>
Here it show Desktop version . I want to change to mobile version.. I checked this with Android and Iphone Devices. in Mobile device also its shows desktop version. I googled it, some site said it automatically change according to devices but not working for me..
Please suggest on this to rectify
Thanks in advance....
Do not know what alternative there is for command _xclick
, but with Express Checkout you can use instead of
<input type="hidden" name="cmd" value="_express-checkout" />
this
<input type="hidden" name="cmd" value="_express-checkout-mobile" />
So the URL looks like https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=...
. See more about Express Checkout Mobile here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPECOnMobileDevices .
Try to find similar solution for Your xclick
cmd parameter.
这篇关于贝宝在移动网站结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!