首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >移动网站上的paypal subscribe html按钮

问移动网站上的paypal subscribe html按钮
EN

Stack Overflow用户
提问于 2013-07-15 16:41:57
回答 1查看 1.3K关注 0票数 1

我正在尝试使用paypal的Subscribe HTML按钮来创建一个选项,让我的移动WEB用户订阅我的服务。我没有发现任何不是通过paypal,或者通过搜索stackoverflow或google,但当我尝试将我的订阅者(通过cmd)发送到"_express-checkout-mobile“而不是"_xclick-subscriptions”时,我被告知“事务无效”。

我希望能做到这一点,因为我希望能够使用贝宝创建一个每月收费,有一个安装费用包括第一个月(这与“设置试用价”完美),所以我可以使用javascript/php/forms来更新价格取决于用户的选择(或通过我的手输入价格为出诊),然后发送我的移动用户到一个移动网站。

本质上,价格和第一个月的费用需要是可变的,并且对于每笔交易,要么是按月收费,要么是按年收费……我也愿意用其他方法来解决这个问题,但我希望它能从我的动态订户选择中转移到paypal mobile上。(我有一个paypay认证的商业帐户顺便说一句)。

示例“测试”代码与php等。

代码语言:javascript
复制
<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">
代码语言:javascript
复制
<!-- 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)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-21 20:08:33

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

但我真的想知道为什么他们不允许这些精选类型在“这个时候”转发到移动优化。如果有一种不同的支付方式,将与移动工作,将做我想(*以上),然后请有人让我知道,因为这是令人沮丧的。

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

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

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17650023

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档