tslamic/premiumer

RESPONSE CODE = 7

knife-s opened this issue · 1 comments

Hello, When buying a subscription onShowAds is called.

I made some tests and found what the response code returned in OnBadPurchaseResult is 7 which is "ALREADY OWNED".

what can I do ?

I think that this is a bug in the library

Fixed by myself. BILLING_TYPE must be set to subs in order to work with subscriptions.

Furthermore, I added two new custom methods to set/get this value, setBillingType(String type) and getBillingType, also a new constant will be necessary, I named it BILLING_RESPONSE_RESULT_ALREADY_OWNED, must be used in "handleActivityResult" callback.

after doing these the lib should work as expected.

Cheers!