Skip to content

Releases: j3k0/cordova-plugin-purchase

v8.0.0

22 May 10:43
254747c
Compare
Choose a tag to compare

Microsoft Window UWP Support

With the addition of the UWP support, you can now target Windows 10, XBox and Windows 10 Mobile. All product types are supported: Subscriptions, Consumables and Non-Consumables.

Thanks to SimPlan for co-funding this feature!

Introductory Prices

Support for Introductory Prices have been added to iOS, Android and Windows.

New fields added to product objects:

  • product.introPrice - Localized introductory price, with currency symbol
  • product.introPriceMicros - Introductory price in micro-units (divide by 1000000 to get numeric price)
  • product.introPriceNumberOfPeriods - number of periods the introductory price is available
  • product.introPriceSubscriptionPeriod - Period for the introductory price ("Day", "Week", "Month" or "Year")
  • product.introPricePaymentMode - Payment mode for the introductory price ("PayAsYouGo", "UpFront", or "FreeTrial")
  • product.ineligibleForIntroPrice - True when a trial or introductory price has been applied to a subscription. Only available after receipt validation. Available only on iOS

Refresh Receipt from validation server (iOS)

Validation servers can now inform the client that the most up-to-date receipt have been used. On iOS, the plugin had to refresh the receipt when the subscription expired, thus opening the AppStore password popup for the user. This can now be prevented by returning the latestReceipt from the validation server.

Remove iOS 6 support

Support for receipt.forTransaction has been dropped. Per-transaction receipts were a thing prior to iOS 7. Everyone now uses per-application receipts.

Subscription Expiry Date

Two new fields have been added to subscription products:

  • product.expiryDate - Latest known expiry date for a subscription (a javascript Date)
  • `product.lastRenewalDate - Latest date a subscription was renewed (a javascript Date)

Those are filled using data from the local receipt on Android and Windows. For iOS, it has to be returned by the receipt validation server (other platform will also update the value based on what the server returns).

Compatibility

This version has been tested with the following cordova platforms versions.

  • cordova-android 6.4.0, 7.1.0, 7.1.4, 8.0.0.
    • 2 versions are known to fail: 7.1.1 and 7.1.2, a bug fix in [email protected] created other issues, like breaking a few plugins installation (including this one).
  • cordova-ios 4.5.5 and 5.0.1
  • cordova-osx 4.5.5 and 5.0.0
  • cordova-windows 7.0.0
  • cordova 7.1.0, 8.1.2, 9.0.0

7.2.1

16 Oct 09:00
Compare
Choose a tag to compare

Change log since v7.0.0:

  • (android) Fix install on android-studio projects (#734)
  • (android) Fix AIDL file path (#664, #671, #676)
  • (android) Fix null pointer bug (#713)
  • (ios) Add store.manageSubscriptions() (#725)
  • (ios) Added 'priceMicros' field for Products (#720)
  • (ios) Register early observer (#636)
  • (ios) Add paymentQueue:shouldAddStorePayment:forProduct: (#637)
  • (all) Add TypeScript definitions (#665, #686, #704)
  • (all) Test more different configurations with Travis CI (#735)
  • (all) Documentation updates (#632, #728)

7.0.0

16 Oct 09:09
Compare
Choose a tag to compare

Change log since v6.0.0

  • (android) Add price_amount_micros to product data (#531)
  • (android) Add ability in android to upgrade a user existing subscription
  • (android) Add developerPayload option
  • (android) Preventing crash on java.lang.NullPointerException (#485)
  • (android) Fix null transactions -- test purchases have no more an order id (#577, #581)
  • (windows-10) Changes for durable and consumable purchases (#459)
  • (ios) Handle nil transaction.originalTransaction when transaction restored
  • (ios) Remove finished transactions from product.transactions for consumables and non-renewing subscriptions.
  • (ios) Trigger product error event on storekit error.
  • (ios) Disable appStoreReceipt caching (4d553aa)
  • (all) Documentation updates (#609, #595, #584, #535)

6.1.1

26 Apr 05:27
Compare
Choose a tag to compare
v6.1.1

6.1.1

v4.0.0

23 Sep 09:45
Compare
Choose a tag to compare
  • Initial windows support
  • Apple-hosted downloadable content
  • Bug fixes

v3.9.1

29 Nov 14:23
Compare
Choose a tag to compare
version 3.9.1

v3.9.0-beta.4

18 Nov 12:02
Compare
Choose a tag to compare
v3.9.0-beta.4 Pre-release
Pre-release

Since 3.9.0-beta.3:

v3.9.0-beta.3

12 Nov 08:54
Compare
Choose a tag to compare
v3.9.0-beta.3 Pre-release
Pre-release

Since 3.9.0-beta.2:

  • Make receipts validation more reliable on iOS, by refreshing the receipts when necessary.

v3.9.0-beta.2

30 Oct 23:35
Compare
Choose a tag to compare
v3.9.0-beta.2 Pre-release
Pre-release

This version is full featured on iOS and Android.

Adds:

  • Receipts validation
  • Subscriptions
  • Restore and refresh active purchases

Since 3.9.0-beta.1:

  • Fix bugs in some error callbacks

v3.9.0-beta.1

25 Oct 22:18
Compare
Choose a tag to compare
v3.9.0-beta.1 Pre-release
Pre-release

This version is full featured on iOS and Android.

Adds:

  • Receipts validation
  • Subscriptions
  • Restore and refresh active purchases