【问题标题】:Paypal can't detect mobile devices on checkoutPaypal 在结帐时无法检测到移动设备
【发布时间】:2013-02-22 08:38:13
【问题描述】:

我使用的是 PayPal 支付标准。在x.com 上面写着:

移动 PayPal 支付标准 (MPPS) 基于 PayPal 支付 标准 (PPS)。 PPS 是集成 PayPal 支付流程的最简单方法 集成到网站中,一旦集成到网站中,移动 自动为访问您的用户提供功能 使用移动设备的网站。

结帐时一切正常,但始终是 PC 版本。尝试使用 iOS 和 Android 手机、BlueStacks 模拟器和来自 Chrome 开发者工具的不同用户代理设置。两者都不起作用。

这是我的按钮:

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

使用cmd="_express-checkout" 版本,我可以在我的表单上将其更改为cmd="_express-checkout-mobile",但没有类似cmd="_xclick" 的选项。

那么,我应该为移动设备实施Exrepess Checkout,还是有办法通过 PayPal Payments Standard 实现这一目标?

可能重复: Mobile optimized checkout for PayPal Website Payments Standard 在接受的答案上,它说要检查电子邮件。我无法访问它,但我尝试使用我的个人电子邮件,它没有任何额外的运费税和税收规则设置。

【问题讨论】:

    标签: paypal paypal-ipn express-checkout paypal-buttons


    【解决方案1】:

    如果您要专门为移动设备构建页面,那么我建议您使用移动设备的 Express Checkout。但是,如果您想使用网站支付标准,则没有代码可以专门通过移动流程引导买家。 PayPal 页面会发现它是移动设备,并通过移动流程引导买家。但是,情况并非总是如此。有些事情会导致买家通过常规网络流程而不是移动流程,即使他们在移动设备上也是如此。这取决于他们使用的是什么类型的按钮,或者代码中传递了哪些变量,因为移动流程不支持所有变量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-07-17
      • 2010-09-06
      • 1970-01-01
      • 2019-02-02
      • 1970-01-01
      • 2010-11-20
      • 2021-04-14
      相关资源
      最近更新 更多