diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index bcad3eaf..c4f6c482 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,19 @@ # Release Notes - Cordova Plugin Purchase +## 13.9 + +### 13.9.0 + +#### (appstore) store.restorePurchases() return potential errors + +The return value for `store.restorePurchases()` has been changed from `Promise` to `Promise`. + +You can now inspect the value returned to figure out if processing complete with or without errors. + +#### (appstore) Fix forceReceiptReload + +In certain conditions (calls to `order` and `restorePurchases`), the AppStore adapter wants to force a refresh of the application receipt. This fix prevents it from returning the version cached in memory. + ## 13.8 ### 13.8.6 diff --git a/api/modules/CdvPurchase.md b/api/modules/CdvPurchase.md index 3476c9c7..10255dcb 100644 --- a/api/modules/CdvPurchase.md +++ b/api/modules/CdvPurchase.md @@ -143,7 +143,7 @@ ___ ### PLUGIN\_VERSION -• `Const` **PLUGIN\_VERSION**: ``"13.8.6"`` +• `Const` **PLUGIN\_VERSION**: ``"13.9.0"`` Current release number of the plugin. diff --git a/plugin.xml b/plugin.xml index 16e54b0f..f4c277b1 100644 --- a/plugin.xml +++ b/plugin.xml @@ -26,7 +26,7 @@ SOFTWARE. + version="13.9.0"> Purchase Cordova Purchase plugin for iOS (AppStore), Android (PlayStore) and Windows diff --git a/src/ts/store.ts b/src/ts/store.ts index 5c0545b7..2e80b170 100644 --- a/src/ts/store.ts +++ b/src/ts/store.ts @@ -32,7 +32,7 @@ namespace CdvPurchase { /** * Current release number of the plugin. */ - export const PLUGIN_VERSION = '13.8.6'; + export const PLUGIN_VERSION = '13.9.0'; /** * Entry class of the plugin. diff --git a/www/store.d.ts b/www/store.d.ts index 04b06c26..613c5e78 100644 --- a/www/store.d.ts +++ b/www/store.d.ts @@ -737,7 +737,7 @@ declare namespace CdvPurchase { /** * Current release number of the plugin. */ - const PLUGIN_VERSION = "13.8.6"; + const PLUGIN_VERSION = "13.9.0"; /** * Entry class of the plugin. */ diff --git a/www/store.js b/www/store.js index 9f5b8077..1c6fc81e 100644 --- a/www/store.js +++ b/www/store.js @@ -1338,7 +1338,7 @@ var CdvPurchase; /** * Current release number of the plugin. */ - CdvPurchase.PLUGIN_VERSION = '13.8.6'; + CdvPurchase.PLUGIN_VERSION = '13.9.0'; /** * Entry class of the plugin. */ @@ -3399,10 +3399,10 @@ var CdvPurchase; this.initialized = true; setTimeout(() => this.processPendingTransactions(), 50); }; - const setupFailed = () => { + const setupFailed = (err) => { log('setup failed'); // protectCall(this.options.error, 'options.error', ErrorCode.SETUP, 'Setup failed'); - protectCall(error, 'init.error', CdvPurchase.ErrorCode.SETUP, 'Setup failed'); + protectCall(error, 'init.error', CdvPurchase.ErrorCode.SETUP, 'Setup failed: ' + err); }; exec('setup', [], setupOk, setupFailed); }