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 9:09 PM, Siddharth Sharma <
sharmasiddha...@hotmail.com> wrote:

>
>
> ---------- Forwarded message ----------
> From: Tarun Sharma <tarun...@gmail.com>
> Date: Tue, Sep 4, 2012 at 3:48 PM
> Subject: Re: Test in-app subscription using test account
> To: android-developers@googlegroups.com
> Cc: Siddharth Sharma <sid.24.10.1...@gmail.com>
>
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to