How can i change plan for subscription in paypal api

Viewed 2070

I want integrate paypal to my membership site. After i checked paypal documentation i realised that i cant find any information about how to change user subscription plan, for example some users become with "basic" plan but after asked to use "pro".

Can't find this function in api docs https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions

What is best practice to do it?

1 Answers

Per https://developer.paypal.com/docs/subscriptions/customize/revise-subscriptions/

You can upgrade or downgrade a subscription by changing the plan and/or quantity of the subscription. Changing from one plan to another is allowed only across plans within the same product.

For example, you can revise a subscription from a $10 basic plan to a $14 premium plan, or revise a five software licenses monthly subscription to 10 licenses per month.

Subscription revisions require the buyer's consent. If the buyer doesn't consent, they continue to be billed according to their current subscription. All successful revisions are effective in the next billing cycle.

It's documented here, although sometimes the "Revise Subscription" section is not rendered correctly. https://developer.paypal.com/api/subscriptions/v1/#subscriptions_revise

Related