question

lionebra avatar image
lionebra asked lionebra commented

In-app tier upgrade

Our app offers 3 monthly subscription tiers. Is there a way to allow the user to switch tiers within our app (without leaving the app). If not, what is the most seamless flow currently available for switching tiers?
Merchant
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Lee Tickett avatar image
Lee Tickett answered lionebra commented
I don't believe you can do it "in-app" but the best process is demonstrated here https://github.com/clover/android-examples/tree/master/checkappsubscriptionexample (thought the README.md isn't clear).

Look at upgradeSubscription.setOnClickListener

Intent intent = new Intent();
intent.setAction(Intents.ACTION_START_APP_DETAIL);
intent.putExtra(Intents.EXTRA_APP_PACKAGE_NAME, "com.example.zachsubscriptionapp.app");
// Pass in one of the App's Subscription Id
intent.putExtra(Intents.EXTRA_TARGET_SUBSCRIPTION_ID, TARGET_SUBSCRIPTION);
startActivityForResult(intent, RESULT_CODE);
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lionebra avatar image lionebra commented ·
@Lee Tickett thanks for your reply. To clarify, `intent.putExtra(Intents.EXTRA_TARGET_SUBSCRIPTION_ID, TARGET_SUBSCRIPTION);` passing one of our app's subscription IDs will switch the merchant to that subscription?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community