auto-renew subscription in-app billing google play - android

This is my first time to deal with in-app billing in android, I want to know If I want to use monthly subscription to my application, is the option of auto-renew subscription in on by default, or user should do something in his/her google wallet account to allow auto-renew subscription in my app
Thanks.

Yes, it is recurring by default. When user buys subscription, it automatically recurs based on an interval you specify in Developer Console, and User can cancel at any time.
The docs say:
After users have purchased subscriptions, they can view the
subscriptions and cancel them from the My Apps screen in the Play
Store app or from the app's product details page in the Play Store
app.
Additionally,
Billing continues indefinitely at the interval and price specified for
the subscription. At each subscription renewal, Google Play charges
the user account automatically, then notifies the user of the charges
afterward by email. For monthly and annual subscriptions, billing
cycles will always match subscription cycles, based on the purchase
date.
See:
http://developer.android.com/google/play/billing/billing_subscriptions.html
http://developer.android.com/google/play/billing/billing_subscriptions.html#cancellation

Related

Inapp purchases and Subscriptions (Sell Once) android

I am providing levels in app (easy(unlocked),fun,crazy,hard)
want the users to buy only once and when they return they should have subscription.
I achieved it by saving in room database
But if I don't consume purchase it gets refunded. If I consume purchase when user comes back he has to buy again (the restore does not works)
What could be the solution?
If we use Subscriptions they are for specific period of time and user has to pay again for renewal but I want them permanent stick with that user.
For non-consumed purchases you need to acknowledge them or they will be automatically refunded in a couple days.
From the docs:
Note: If you do not acknowledge a purchase within three days, the user automatically receives a refund, and Google Play revokes the purchase.

Android In-App Subscription PurchaseState is always 0

In my android app using in-app subscription monthly plan. I have purchased a subscription product with test account. After one hour I cancelled it manually from my phone.
After I query using inventory.getPurchase(monthlyplan), I always get purchase state is 0.
I waited more than one day; still getting response of purchase state is 0. Can any one help me on this?
You may want to check this document - Subscription Cancellation:
Users can view the status of all of their subscriptions and cancel them if necessary from the My Apps screen in the Play Store app. Currently, the In-app Billing API does not provide support for programatically canceling subscriptions from inside the purchasing app.
When the user cancels a subscription, Google Play does not offer a refund for the current billing cycle. Instead, it allows the user to have access to the canceled subscription until the end of the current billing cycle, at which time it terminates the subscription. For example, if a user purchases a monthly subscription and cancels it on the 15th day of the cycle, Google Play will consider the subscription valid until the end of the 30th day (or other day, depending on the month).
Important: In all cases, you must continue to offer the content that your subscribers have purchased through their subscriptions, as long any user is able to access it. That is, you must not remove any content while any user still has an active subscription to it, even if that subscription will terminate at the end of the current billing cycle. Alternatively, you can use the refund and revoke API to revoke each subscriber's subscription (one by one) and refund their subscription payments. Removing content that any subscriber is entitled to access will result in penalties. Please see the policies document for more information.
There are some good insights regarding the following (also found in the same document):
App uninstallation
Refunding and revoking subscriptions
Here is a related SO question that also talk about cancelling subscription in-app.

Disable auto renew for subscription on Android IAB

I plan to use monthly subscription in my app, however I don't feel comfortable with auto renew process. My main concern is that users will not be aware that it's not a one time purchase, but a monthly auto renew subscription.
Is there a way on Google's In-app billing v3 or Google Play console to disable auto-renew for subscriptions? After all, next month I can show a purchase dialog for the user or at least have the auto-renew optional.
I haven't found anything on docs related to disable of autoRenewing.

InApp Subscriptions or Google Wallet

I have gone through most of the links here on stackoverflow and i have some doubts regarding InApp Subscriptions and Google Wallet.
What i know:
InApp Subscriptions basically allows a user to be able to subscribe to an app, say for example if it offers one year trial period, then once thats over, Google automatically handles the subscriptions then after.
Google Wallet, its a method that can be used to perform the purchase. What i don't understand is, can i use this method in order to allow users to use the app for one year, and then make them pay for the next years?
Billing continues indefinitely at the interval and price specified for the subscription. At each subscription renewal, Google Play charges the user account automatically, then notifies the user of the charges afterward by email. For monthly and annual subscriptions, billing cycles will always match subscription cycles, based on the purchase date. (Seasonal subscriptions are charged annually, on the first day of the season.)
This is what happens in my app:
1. A user logs in, and i get a date that probably keeps track of the billing cycle
2. If the sessions expired, the user is asked to pay using the inApp Billing serivce
3. Based on TrivailDriveApp Example, where we have the success log printed on subscription, we update the date of payment.
Some questions i have:
As per the quote from android, if the user is automatically subscribed to the service, and if a mail is sent to the user, does that mean that i would never be able to get a notification about the payment extension? How do i sync that with the server then?
Is my approach wrong in handling this kind of scenario? Or do i have to select a different method of handling app extensions?
P.S: There is no way of testing inapp subscriptions also. I wonder if i could do that without using real credit/debit card credentials.
EDIT:
I would also want to keep track of when the purchase or billing was done, if subscriptions are auto-renewed, then should i take up the purchase flow as an InApp Product instead of an InApp Subscription?
Please help.

Subscription for android App

What I want to do is publish my app on Google Play.When the User will buy the app he/she has to pay the price initially.I want my app to be renewed after a certain period i.e monthly.If the period gets over the user will not be able to use the app.Any idea how to do it?Is in-app subscription for android app the solution for this?
Please see this android developer guide for subscriptions.
From android docs
"A subscription is a product type offered in In-app Billing that lets you sell content, services, or features to users from inside your app with recurring monthly or annual billing. You can sell subscriptions to almost any type of digital content, from any type of app or game"
User billing
In the Developer Console, you can configure subscription products with automated recurring billing at either of two intervals:
Monthly — Google Play bills the customer’s Google Wallet account at the time of purchase and monthly subsequent to the purchase date (exact billing intervals can vary slightly over time)
Annually — Google Play bills the customer's Google Wallet account at the time of purchase and again on the same date in subsequent years
http://developer.android.com/google/play/billing/billing_subscriptions.html

Categories

Resources