简体   繁体   English

Paypal 订阅(具有多种付款计划的付款协议)

[英]Paypal Subscriptions ( payment agreement with mulitiple payment plans )

We have implemented paypal subscription payment.我们已经实施了贝宝订阅付款。 I have completed the following steps.我已经完成了以下步骤。

  1. Create a payment plan.制定付款计划。
  2. Activate the plan激活计划
  3. Create a payment agreement.创建付款协议。
  4. Get user signup to a specific agreement (Divert to agreement url)获取用户注册特定协议(转移到协议网址)
  5. Execute the payment.执行付款。

But my current project involves multiple subscriptions in one checkout.但是我当前的项目涉及一次结帐中的多个订阅。 You can signup for 2 subscriptions with two different products and pay at once, but both products will be set to auto renew.您可以使用两种不同的产品注册 2 次订阅并一次付款,但两种产品都将设置为自动续订。

My issue is how can i achieve multiple subscriptions so user has to agree with only one payment agreement(One checkout).我的问题是如何实现多个订阅,以便用户只需要同意一个付款协议(一次结帐)。 And later on they can switch on and off auto subscription for one product if they want to.之后,如果他们愿意,他们可以打开和关闭一种产品的自动订阅。

I have already tried the following.我已经尝试了以下方法。

$plan_1 = new Plan();
$plan_1->setId('P-****************');
$plan_2 = new Plan();
$plan_2->setId('P-************');
$agreement->setPlan($plan_1);
$agreement->setPlan($plan_2);

But an agreement can have only one plan apparently.但一个协议显然只能有一个计划。 I cannot pass two plans to one agreement.我不能通过两个计划达成一个协议。 How can i do it so user has to visit paypal only once?我该怎么做才能让用户只访问贝宝一次?

I doubt this is possible.我怀疑这是可能的。 When I dealt with Billing/Recurring agreements years ago, you had to set them up one at a time.几年前我处理计费/重复协议时,您必须一次设置一个。 This was to prevent abuse where someone could layer in multiple agreements.这是为了防止有人可以在多个协议中分层的滥用。

The best I could suggest is to build everything into one plan and go from there.我能建议的最好方法是将所有内容纳入一个计划,然后从那里开始。 Modify the agreement if the user changes their agreement type/level.如果用户更改其协议类型/级别,请修改协议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM