Paypal 订阅修改

标签 paypal subscription

我希望有人可以帮助修改订阅价格。

我有一个社交网站,您最初可以在其中订阅标准或高级帐户,这取决于您帐户中激活的应用程序。

我的客户现在要取消这 2 个订阅,并能够选择用户想要使用的应用程序,并针对指定应用程序的总费用收取订阅费用。

我有一个“附加”页面,用户在其中单击与每个应用程序关联的复选框,然后处理付款,IPN 对其帐户进行修改,效果很好。

但是当用户决定他们想要更多或更少的应用程序并再次填写表格时,我不知道如何修改他们的付款。

当我将修改变量添加到 html 表单并继续付款时,它会将我带到一个 radio 表单,其中包含来自不同项目的其他订阅。

我只想修改用户付款的总支出。流程的形式是用户,没有任何非法行为,只是简单地寻找能够更改订阅率的用户,这取决于他们想要激活的应用程序。

这是我的 html 表单:

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

style="margin:20px;">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="******************************" />
<input type="hidden" name="item_name" value="************************ Application Bolt-on's" />
<input type="hidden" name="return" value="http://www.***************.co.uk/?navigation=home">
<input type="hidden" name="cancel_return" value="http://www.***************.co.uk/?navigation=home">
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<?php
if( isset( $post['mod'] ) ) {
    echo "<input type=\"hidden\" name=\"modify\" value=\"2\" />";   
    echo "<input type=\"hidden\" name=\"a3\" value=\"00.02\" />";
}else{
    echo "<input type=\"hidden\" name=\"a3\" value=\"00.01\" />";
}
?>
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="<?php echo $custom_str; ?>" />
<input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

我已经阅读了很多文章,但从某种意义上说,我没有接触过这个主题是否可以完成,所以请不要向我发送 paypal 网站的链接,除非它是我可能错过的确切答案。

非常感谢任何帮助,

问候,

菲尔

最佳答案

讨厌对您的问题给出这样一个部分的非答案,但我认为您需要的信息可能在以下博客文章 http://talklikeaduck.denhaven2.com/2007/09/02/how-to-cure-the-paypal-subscription-blues(链接已损坏,但出于归属目的保留在这里)

来自那篇文章:

Another complexity of PayPal subscriptions is how to allow users to modify subscriptions. In fact this is where I came in on this particular web site. They had been offering only monthly subscriptions and wanted to offer an annual subscription with a discount. The key here is to ensure that you tell PayPal that you are modifying a subscription rather than creating a new one. The PayPal documentation describes the ‘modify’ attribute which is to be passed with the subscription signup request post to paypal. A value of ‘1’ for this attribute indicates that it will modify an existing subscription, or create a new one if there is no existing subscription. Don’t beleive this. My initial testing with the PayPal developer sandbox seemed to indicate that this worked. In practice though, once deployed, it always seemed to create a new subscription, which meant that when a user upgraded a monthly subscription to an annual one, she ended up with both.

The fix was to use a value of ‘2’ for modify when the user had an existing subscription, and not to use the modify attribute at all otherwise.

这篇文章的日期是 2007 年,我会谨慎地将其作为当前引用,但它可能是一个很好的起点。

关于 Paypal 订阅修改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2910535/

相关文章:

c# - Paypal 在 Xamarin 中将 Java.Lang.Object 解析为 PaymentConfirmation

Android 应用内结算订阅状态更改回调

visual-studio - 如何将 Visual Studio 订阅与公司 Azure 订阅关联起来?

java - 对话范围和 jsf 重定向

php - curl 中的 paypal MALFORMED REQUEST 错误

reactjs - 如何防止支付后直接进入成功页面?

paypal - 使用 PayPal Refund API 进行自适应支付的部分退款返回内部错误 (520002)

angular - 订阅路由参数未触发

ios - 我们可以在 ios 的单个应用程序中有两个不同的订阅吗

amazon-web-services - AWS AppSync - 对突变的订阅不返回所需的字段