How to Enable or Disable Subscription Auto-Renewal?

utsavdarji29
Contributor
Contributor

Hello everyone,

I’m integrating PayPal Subscriptions into my application, and I want to give users the option to enable or disable auto-renewal during the subscription purchase process.

Here’s my scenario:

  • I have subscription plans for 1 month, 2 months, and 6 months.
  • Users pay the full amount upfront for the selected subscription period.
  • During the purchase, users can choose to enable or disable auto-renewal via a toggle option.
  • If auto-renewal is enabled, the subscription should automatically renew at the end of the subscription period.
  • If auto-renewal is disabled, the subscription should not renew after the selected period expires.

I am using the PayPal REST API to create the plans and subscriptions.

My questions are:

  1. How can I configure the total_cycles or auto_bill_outstanding settings based on the user’s selection?
  2. If a user disables auto-renewal at the start, can they later enable it during the active subscription period? If so, how can this be done via the API?
  3. Would it be appropriate to use suspend or cancel the subscription for handling auto-renewal toggle changes, or is there a better approach?

Any guidance or best practices would be appreciated!

Thank you.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.