cc.fovea.cordova.purchase
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -805,3 +805,6 @@ # API Documentation | ||
Logs a debug message, only if `store.verbosity` >= store.DEBUG | ||
# Random Tips | ||
- Sometimes during development, the queue of pending transactions fills up on your devices. Before doing anything else you can set `store.autoFinishTransactions` to `true` to clean up the queue. Beware: **this is not meant for production**. | ||
# internal APIs | ||
@@ -808,0 +811,0 @@ USE AT YOUR OWN RISKS |
{ | ||
"name": "cc.fovea.cordova.purchase", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Cordova Purchase plugin for iOS and Android (AppStore and PlayStore)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -52,3 +52,3 @@ /*global storekit */ | ||
storekitFinish(product); | ||
if (product.type === store.CONSUMABLE || product.type === store.NON_RENEWING_SUBSCRIPTION) { | ||
if (product.type === store.CONSUMABLE || product.type === store.NON_RENEWING_SUBSCRIPTION || product.expired) { | ||
product.set("state", store.VALID); | ||
@@ -164,3 +164,3 @@ setOwned(product.id, false); | ||
debug: store.verbosity >= store.DEBUG ? true : false, | ||
noAutoFinish: true, | ||
noAutoFinish: !store.autoFinishTransactions, | ||
error: storekitError, | ||
@@ -167,0 +167,0 @@ purchase: storekitPurchased, |
@@ -161,2 +161,4 @@ (function() { | ||
if (success) { | ||
if (that.expired) | ||
that.set("expired", false); | ||
store.log.debug("verify -> success: " + JSON.stringify(data)); | ||
@@ -189,2 +191,3 @@ store.utils.callExternal('verify.success', successCb, that, data); | ||
else { | ||
that.set("expired", true); | ||
store.error(err); | ||
@@ -191,0 +194,0 @@ store.utils.callExternal('verify.error', errorCb, err); |
@@ -309,3 +309,6 @@ /// ### Philosophy | ||
/// # Random Tips | ||
/// | ||
/// - Sometimes during development, the queue of pending transactions fills up on your devices. Before doing anything else you can set `store.autoFinishTransactions` to `true` to clean up the queue. Beware: **this is not meant for production**. | ||
/// | ||
/// # internal APIs | ||
@@ -312,0 +315,0 @@ /// USE AT YOUR OWN RISKS |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
800568
14295