javascript - In app purchases Cordova Plugin -
i use cordova plugin in-app purchases ios app (https://github.com/j3k0/cordova-plugin-purchase/blob/master/doc/api.md#refresh).
i've followed code example shows:
store.register({ id: 'credits_test', alias: 'credits_advance', type: store.consumable }); store.refresh(); store.when("credits_test").approved(function (product) { product.finish(); updatecreditspurchased(p.token, 1, product ints[0]); }); $(".btn").click(function() { store.order("credits_test"); })
i don't have validators on store object , use sandbox account testings.
now reason product state "valid", on approved event before fire "finish" event , see in console log product stuck in queue..
any ideas?
that correct behaviour have selected product type of consumable
when finished, consumable product valid state, while other enter owned state.
try using non-consumable
product type.
source: https://github.com/j3k0/cordova-plugin-purchase/blob/master/doc/api.md
Comments
Post a Comment