Hi Tarun. I am not sure about PurchaseToken but google play will keep your purchase in record and after billing cycle(monthly/yearly) it will charge user again. If it fails it will inform tour app in onPurchaseStateChange() callback. It will give you response code as expired.
On Thursday, 6 September 2012 11:40:17 UTC+5:30, Tarun Sharma wrote: > > Thanks I have tried this one but unable to check and also I have some > confusion, Can you please guide/suggest me. > > > I have modified security.java and parse "purchaseToken" field from > JSON. and also encapsulated in "purchaseToken" VerifiedPurchase. so i > modified Security.java, BillingServices.java, ResponseHandler.java and > PurchaseDatabase accordingly.Today I will try to check > > I have some Questions, can you please help > > What is the role of purchaseToken. should it maintain in local databse as > other purchase information? > > Now once the Subscription Product puchased and payment is done > successfully, for next month/year, billing recurrences will be done > automatically or we have to done this through code using purchaseToken. > > When the user cancels a subscription Google Play notifies our app that the > purchase state has changed to "Expired". > then how can we handle purchase state. > > On Tue, Sep 4, 2012 at 9:06 PM, Siddharth Sharma > <[email protected]<javascript:> > > wrote: > >> Yes, you need to modify Security.java and parse "purchaseToken" field >> from JSON. Once done, make sure the field is encapsulated in >> VerifiedPurchase and passed on to ResponseHandler to let your persistence >> capture the field >> >> ResponseHandler.purchaseResponse(this, vp.purchaseToken, >> vp.purchaseState, vp.productId, >> vp.orderId, vp.purchaseTime, vp.developerPayload); >> >> Hope this helps >> >> >> >> On Tue, Sep 4, 2012 at 3:48 PM, Tarun Sharma <[email protected]<javascript:> >> > wrote: >> >>> Hi, >>> Hi, >>> >>> Please help me out ... >>> >>> I had successfully implemented InApp billing with managed products. Now >>> upgrade that with subscription (IAB V2). >>> I had done all changes that required for subscription as mention in >>> below link. >>> >>> >>> http://developer.android.com/guide/google/play/billing/billing_subscriptions.html >>> >>> And On my research I found that Purchase token is recieved along with >>> the JSON(Signed data) on successful purchase for subscription. >>> The demo's Security.java on successful verification of signature parses >>> Json however the parsing of element Purchase-token is missing here. >>> I haven't yet run the code since subscription doesn't have test >>> product-ids and requires actual purchase. >>> What I want to know is this token be parsed here or is the sample code >>> provided has this part correctly implemented. >>> >>> If token to be parsed then what changes should be done in >>> BillingService.java,ResponseHandler.java, Security.java and >>> PurchaseDatabase.java for PurchaseToken. >>> >>> >>> On Tuesday, 4 September 2012 15:01:53 UTC+5:30, Oleg Pravdin wrote: >>>> >>>> Hi, >>>> >>>> Is there any way to test in-app subscription using test account? I've >>>> uploaded an unpublished app. to market and published a monthly item for >>>> it. >>>> When I try to buy the subscription using one of the test accounts. Google >>>> requests me to provide Credit card info. to create a new Wallet account. >>>> >>>> Is it safe to provide CC. details as I just want to test subscription. >>>> Will test user be charged for subscription? >>>> >>>> >>>> - Thx >>>> >>> >> >> >> -- >> Siddharth Sharma >> 9820124857 >> > > > > -- > > Best Regards and Thanks !! > > * > Tarun Sharma* > > ***Balaji Websoft Technology Pvt. Ltd.*** > > * *M: +91-9413934366 > > Skype: tarunudr > E: [email protected] <javascript:> > W: www.baltech.in > *Together We Can !!!!* > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

