in app purchase - Android/Google Play: do I really need my OWN server to manage inapp billing subscriptions? -


in google play doc, written "to verify purchase, app passes purchase token , other details backend servers, verifies them directly google play using google play developer api."

my question : need own server implement inapp subscriptions in android app ?

is there way implement subscriptions without own server ? (using google play inapp billing api directly app)

thanks !

answer own question : no need have own server implement inapp subscriptions. own server allows add level of security don't care security in specific case (no problem if 1% of people bypass inapp process).

an own server allows perform additional level of checking 'boolean verifydeveloperpayload(purchase p)' method. return 'true' in cases set default in google example.

to implemeent subscriptions call :

mhelper.launchsubscriptionpurchaseflow(this, sku_premium, rc_request, mpurchasefinishedlistener); 

instead of :

mhelper.launchpurchaseflow(this, sku_premium, rc_request, mpurchasefinishedlistener, payload);  

crete subscription item in dev console.

and !


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -