简体   繁体   English

贝宝在结帐时无法检测到移动设备

[英]Paypal can't detect mobile devices on checkout

I'm using PayPal Payments Standard. 我正在使用PayPal付款标准。 On the x.com it says: x.com上显示:

Mobile PayPal Payments Standard (MPPS) is based on PayPal Payments Standard (PPS). 移动贝宝付款标准(MPPS)基于贝宝付款标准(PPS)。 PPS the easiest way to integrate a PayPal payment flow into a website, and once integrated into a website, the mobile functionality is automatically provided for users who access your website using a mobile device. PPS是将PayPal付款流程集成到网站中的最简单方法,并且一旦集成到网站中, 就会为使用移动设备访问您的网站的用户自动提供移动功能

Everything is working on the checkout but it's always the PC version. 一切都在结帐中进行,但始终是PC版本。 Tried with iOS and Android phones, BlueStacks emulator and different User Agent settings from Chrome's Developer Tool. 在iOS和Android手机,BlueStacks模拟器和Chrome开发人员工具中的不同用户代理设置中进行了尝试。 Neither works. 都不行。

This is my button: 这是我的按钮:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal_form">
    <!-- Things you should change on per order -->

    <input type="hidden" name="item_name" value="<?=$paypalItemName?>"> <!-- Description of goods -->
    <input type="hidden" name="amount" value="<?=$total_amount?>"> <!-- Amount to bill customer -->
    <input type="hidden" name="invoice" value="<?=$paypalID?>"> <!-- Unique sales ID number -->

    <!-- Things you only need to change on setup -->

    <input type="hidden" name="business" value="name@mydomain.com">   <!-- Master Paypal Email -->
    <input type="hidden" name="currency_code" value="USD"> <!-- Currency -->
    <input type="hidden" name="return" value="http://www.mydomain.com/order-success.php?ppl=1&subscription_id=<?php echo $paypalID; ?>"> <!-- Your thank you page -->
    <input type="hidden" name="cancel_return" value="http://www.mydomain.com/order-declined.php">  <!-- Page incase of error-->

    <!-- Things you should not change -->

    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="undefined_quantity" value="1"> <!-- Quantity - Keep One -->
    <input type="hidden" name="item_number" value="1"> <!-- Item Number-->
    <input type="hidden" name="charset" value="utf-8"> <!-- Leave as is -->
    <input type="hidden" name="no_note" value="1"> <!-- No note required by customer -->
    <input type="hidden" name="notify_url" value="https://www.mydomain.com/api/paypal.php"> <!--Leave as is-->

    <input type="image" src="http://images.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

With cmd="_express-checkout" version I can change it to cmd="_express-checkout-mobile" on my form but there is not an option like that for cmd="_xclick" . 使用cmd="_express-checkout"版本,我可以在表单上将其更改为cmd="_express-checkout-mobile" ,但没有cmd="_xclick"这样的选项。

So, should I implement Exrepess Checkout for mobile devices or there is a way to achieve this with PayPal Payments Standard? 因此,我应该为移动设备实施Exrepess Checkout还是可以使用PayPal Payments Standard实现此目的?

Possible duplicate: Mobile optimized checkout for PayPal Website Payments Standard On the accepted answer there it says to check the email. 可能重复: 针对PayPal网站付款标准的移动设备优化结帐在接受的答案中,它要求检查电子邮件。 I haven't access to it but I tried with my personal email which has not any additional settings for shipping tax and tax rules set. 我没有访问权限,但尝试使用我的个人电子邮件,该电子邮件没有设置任何其他运费和税费设置设置。

If you are buidling a page specifically for mobile, then I would suggest using the Express Checkout for mobile. 如果您要建立专门针对移动设备的页面,那么我建议您使用Express Checkout移动设备。 However, if you are wanting to use Website Payments Standard, there is not code to specifically direct the buyer through a mobile flow. 但是,如果您要使用“网站付款标准”,则没有代码专门通过移动流程指导买方。 The PayPal pages will pick up that it is a mobile device and direct the buyer through the mobile flow. PayPal页面将识别出它是一种移动设备,并通过移动流程指导买方。 However, this will not always be the case. 但是,情况并非总是如此。 There are certain things that can cause the buyer to go through the reqular web flow instead of the mobile flow even if they are on a mobile device. 某些事情可能导致买家浏览规则的Web流程而不是移动流程,即使他们在移动设备上也是如此。 This can happen depending on what type of button they are using, or what variables are being passed over in the code, as all variables are not supported by the mobile flow. 发生这种情况的原因可能是它们所使用的按钮类型,还是代码中传递了哪些变量,因为移动流不支持所有变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM