【问题标题】:paypal subscribe html button on mobile site移动网站上的贝宝订阅 html 按钮
【发布时间】:2013-07-13 01:38:45
【问题描述】:

我正在尝试使用 paypal 的订阅 HTML 按钮为我的移动 WEB 用户创建一个选项来订阅我的服务。我没有发现任何说这不是用贝宝大声说出来的,或者通过搜索 stackoverflow 或谷歌,但是当我尝试将我的订阅者(通过 cmd)发送到“_express-checkout-mobile”而不是“_xclick-subscriptions”时我被告知“交易无效”。

我希望可以做到这一点,因为我希望能够使用贝宝创建包含第一个月的安装费的月度费用(与“设置试用价格”完美配合),因此我可以使用 javascript/ php/forms 根据用户选择更新价格(或通过我手动输入上门服务价格),然后将我的移动用户发送到移动站点。

基本上价格和第一个月的费用需要是可变的,并且可以是每月或每年,对于每笔交易......我也愿意用其他方法来解决这个问题,但我希望它去从我的动态订阅者选择到贝宝移动。 (顺便说一句,我有一个经过 paypay 验证的企业帐户)。

使用 php 等的“测试”代码示例

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="robwestx@gmail.com">


<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="<? echo $_POST['my_item']; ?>">
<input type="hidden" name="item_number" value="">

<!-- Set the terms of the trial period (e.g. first month/year with setup). -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="<? echo $my_total; ?>">
<input type="hidden" name="p1" value="1">
<? 
 if($_POST['onoffswitch']){//Monthly or annual
 echo '<input type="hidden" name="t1" value="Y">';
 }else{
 echo '<input type="hidden" name="t1" value="M">';
 }
?>



<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="<? echo $my_mo_total; ?>">
<input type="hidden" name="p3" value="1">
    <? 
 if($_POST['onoffswitch']){
 echo '<input type="hidden" name="t3" value="Y">';
 }else{
 echo '<input type="hidden" name="t3" value="M">';
 }
?>


<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">

<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>

我找到了这个,但我什至无法通过订阅获得移动版本。 (Paypal Standard not redirecting to mobile checkout when discount_amount posted)

【问题讨论】:

  • _express-checkout-mobile 值仅适用于 Express Checkout 交易。在这里,您只是尝试使用付款标准。您想要做的事情是可能的,但前提是您将有效的变量和值传递给 PayPal。上面的代码不适合你吗?使用移动支付标准有一些限制,但订阅按钮可以使用它。
  • 谢谢。我没有意识到它是移动支付标准,我在搜索更多后发现了这个:link 上面写着:code 注意:与“捐赠”、“加入购物车”、italic_or 集成的商家“订阅”按钮目前根本不会从移动优化体验中受益。_斜体 他们的客户将继续在移动设备上体验当前的支付体验。code 所以我想这回答了我的问题,但是为什么上述类型不重定向到移动设备?

标签: javascript html mobile paypal paypal-subscriptions


【解决方案1】:

谢谢帕特里克。这解决了我的问题。

但我确实想知道为什么他们“此时”不允许这些选择类型转发到移动优化。如果有一种不同的付款方式可以与移动设备一起使用,可以满足我的要求(* 上图),那么请有人告诉我,因为这很令人沮丧。

如果其他人正在寻找带有订阅的 Paypal Mobile Payments Standard 或 Express Checkout on Mobile,那么答案是:

注意:集成了“捐赠”、“加入购物车”或“订阅”按钮的商家目前根本无法从移动优化体验中受益。他们的客户将继续在移动设备上体验当前的支付体验。

https://developer.paypal.com/webapps/developer/docs/classic/products/mobile-paypal-payments-standard/

【讨论】:

  • 嘿,你有没有找到解决这个问题的方法?
猜你喜欢
  • 2013-01-24
  • 2012-04-09
  • 2012-10-21
  • 1970-01-01
  • 2012-11-23
  • 2014-07-27
  • 2012-02-18
  • 2013-06-15
相关资源
最近更新 更多