I’m exploiting cordova-plugin-inapppurchase to sell a full access to one app basically provide with some limited features. I need to use restore() method tho check if an user has really yet bought my product, I can get response data to exploit them but the returned data always give the receipt’s statePurchase equal to “0” in the string formatted ‘receipt’ item of JSON formatted data.
I expect to receive “1” after the customer’s or tester’s buying, and to receive “REFUNDED” or “2” after its refunding. The two cases were tested after I’ve added in my GooglePlay account an apk beta release.
Moreover the product has been bought with the buy() method, I never follow it with the “consume” method, I tested with using the consume() method just after the buy() method but it doesn’t helps : it permits to re-buy the yet owned product !