我正在尝试使用paypal的Subscribe HTML按钮来创建一个选项,让我的移动WEB用户订阅我的服务。我没有发现任何不是通过paypal,或者通过搜索stackoverflow或google,但当我尝试将我的订阅者(通过cmd)发送到"_express-checkout-mobile“而不是"_xclick-subscriptions”时,我被告知“事务无效”。
我希望能做到这一点,因为我希望能够使用贝宝创建一个每月收费,有一个安装费用包括第一个月(这与“设置试用价”完美),所以我可以使用javascript/php/forms来更新价格取决于用户的选择(或通过我的手输入价格为出诊),然后发送我的移动用户到一个移动网站。
本质上,价格和第一个月的费用需要是可变的,并且对于每笔交易,要么是按月收费,要么是按年收费……我也愿意用其他方法来解决这个问题,但我希望它能从我的动态订户选择中转移到paypal mobile上。(我有一个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)
发布于 2013-07-21 20:08:33
谢谢帕特里克。这解决了我的问题。
但我真的想知道为什么他们不允许这些精选类型在“这个时候”转发到移动优化。如果有一种不同的支付方式,将与移动工作,将做我想(*以上),然后请有人让我知道,因为这是令人沮丧的。
如果其他人正在寻找Paypal Mobile Payments Standard或Express Checkout on Mobile,那么答案是:
注意:与“捐赠”、“添加到购物车”或“订阅”按钮集成的商家目前根本不会从移动优化体验中受益。他们的客户将继续在移动设备上体验当前的支付体验。
https://stackoverflow.com/questions/17650023
复制相似问题