Fovea / cordova-plugin-purchase-demo

Demo of the Purchase Plugin for Cordova
32 stars 35 forks source link

not calling .finish() on an order makes in-app-purchases stop working #5

Closed andreiciceu closed 9 years ago

andreiciceu commented 9 years ago

After the user's made an in app purchase, if I don't call .finish() on the approved purchase, the next time I open the app, I cannot buy the item again (the Google Play overlay doesn't even appear).

When I look at the log, after refresh, the item doesn't event load from PlayStore anymore.

{
                        "id": "android.test.purchased",
                        "alias": "Premium62",
                        "type": "consumable",
                        "state": "registered",
                        "title": null,
                        "description": null,
                        "price": null,
                        "currency": null,
                        "loaded": false,
                        "canPurchase": false,
                        "owned": false,
                        "transaction": null
};

How can I prevent this from happening?