-1

I have 2 subscription in android

Basic One with 3 base plan (less feature) 1 month prepaid 6 month prepaid 12 month prepaid

Premium one with 3 base plan (more feature) 1 month auto renewal 6 month prepaid 12 month prepaid

Scenario 1 I have to upgrade 1 month basic to 12 month basic -- (this should work as extend mean increase end date) scenario 2 I have to upgrade 1 month basic to 12 month premium -- (if user doing in between upgradation then this system has calculate remaining duration as per new plan , add that much extra as subscription end date)

Also make sure for Scenario 2 , there should old subscription should be termination there is no 2 active subscription at same time

To achieve this Should I create 2 subscription,

  1. Basic one - with 3 base plan( 1,6,12 month prepaid)

  2. Premium one - with 3 base plan( 1 month renewal, 6 and 12 prepaid)

Or should I create single subscription with 6 based plan

1 month basic prepaid 6 month basic prepaid 12 month basic prepaid 1 month premium auto renewal 6 month premium prepaid 12 month premium prepaid

I don't want 2 active subscription at same time

asked Aug 21, 2024 at 12:36

1 Answer 1

0

You should create 2 separate subscriptions, that would be best in your scenarios. The in-app billing automatically detects when the user upgrade his plan from basic to premium. Although you need to code according to your cases. Reading this documentation will help you https://developer.android.com/google/play/billing/subscriptions#switch_plans_across_subscriptions_or_override_the_default_replacement_mode

answered Oct 1, 2024 at 6:17
Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.