Android billing- error you already own item: Carrier billing config is null. Device is not targeted for DCB 2 -


i'm trying test trial subscription using android billing v3. app have products on production i'm trying add subscription. works fine when buy trial subs first time. cancelled (wait hours , days) , when try buy again there's android dialog message: own item. both google play app , server side app confirm subscription cancelled.

the logcat window shows output:

03-24 15:41:53.722: d/iabhelper(21333): constructing buy intent com.myapp.freetrial, item type: subs 03-24 15:41:53.732: d/finsky(20292): [1056] inappbillingutils.pickaccount: com.myapp:      account determined installer data - [uahnzq8s3yargc_6ew11rbhr0de] 03-24 15:41:53.742: d/iabhelper(21333): launching buy intent com.myapp.freetrial. request code: 10001 03-24 15:41:53.742: d/audio_hw_primary(181): select_devices: out_snd_device(2: speaker) in_snd_device(0: ) 03-24 15:41:53.742: d/acdb-loader(181): acdb -> send_afe_cal 03-24 15:41:53.742: i/activitymanager(580): start u0 {cmp=com.android.vending/com.google.android.finsky.billing.lightpurchase.iabv3activity (has extras)} pid -1 03-24 15:41:53.812: d/finsky(20292): [1] carrierparamsaction.createcarrierbillingparameters: carrier billing config null. device not targeted dcb 2. 03-24 15:41:53.812: e/finsky(20292): [1054] filebasedkeyvaluestore.delete: attempt delete 'params5wrd2reiodmwvqikvi-biw' failed! 03-24 15:41:53.872: w/glsuser(17314): googleaccountdataservice.gettoken() 03-24 15:41:53.882: i/activitymanager(580): displayed com.android.vending/com.google.android.finsky.billing.lightpurchase.iabv3activity: +99ms 

i had add onqueryinventoryfinished billing_response_result_item_already_owned checked because subs recreated on server side everytime query inventory:

public void onqueryinventoryfinished(iabresult result, inventory inventory) {     // log.d(tag, "query inventory finished.");     mhelper.flagendasync();     if (result.isfailure()) {         // complain("failed query inventory: " + result);         return;     }      // log.d(tag, "query inventory successful.");     if (result.getresponse() == iabhelper.billing_response_result_item_already_owned) {         return;     }     consumepuchaseditems(inventory);      // log.d(tag, "initial inventory query finished; enabling main ui.");  } 

my app signed release certificate, build code+version numbers same in developer console.

i'm using latest code http://code.google.com/p/marketbilling/ (14/12/2013)

i have checked android billing - error own item , other similar posts, not working.

i appreciate suggestion.any idea? i'm working on several days , still no solution. subscription process seems work first time, tried different account. problem arises when cancel , try re-buy it.

thanks!!!

when cancel subscription still have access subscription until end of subscription period. google's implementation. , why there no refunds cancelled subscriptions because google still allows access subscription entire subscription period when cancelled.

what cancelling subscription stop subscription renewal.

this why though cancelled subscription cannot purchase again. should able re-purchase once current subscription period ends.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -