Skip to content

Releases: iaphub/react-native-iaphub

v8.6.1

16 Mar 19:46
Compare
Choose a tag to compare
  • iOS SDK updated to 4.2.2
    • StoreKit V2 enhancements

v8.6.0

07 Mar 00:15
Compare
Choose a tag to compare
  • iOS SDK updated to 4.2.1
    • enableStoreKitV2 property added

v8.5.1

13 Feb 00:11
Compare
Choose a tag to compare
  • Android SDK updated to 4.2.2, iOS SDK updated to 4.1.2
    • isSandbox property added

v8.5.0

21 Jan 22:34
Compare
Choose a tag to compare
  • Android SDK updated to 4.2.1
    • Add support of Android target SDK 34

v8.4.2

04 May 23:08
Compare
Choose a tag to compare
  • iOS & Android SDKs updated to 4.1.1
    • Login enhanced

v8.4.1

09 Feb 00:24
Compare
Choose a tag to compare
  • Fix BillingStatus filteredProductIds property type

v8.4.0

14 Jan 18:49
Compare
Choose a tag to compare
  • Only start Google Billing connection if not already starting (can happen if timeout previously triggered)
  • Network request timeout enhanced
  • Log enhanced
  • Add error subcode "play_store_outdated" when the play store is outdated
  • Add system to automatically recover products for sale that were previously filtered
  • Add getBillingStatus method

v8.3.3

20 Dec 08:54
Compare
Choose a tag to compare
  • Fix invalid version in config file

v8.3.2

19 Dec 13:25
Compare
Choose a tag to compare
  • iOS SDK updated to 4.0.2

v8.3.1

18 Dec 09:17
Compare
Choose a tag to compare

We're happy to release the v8.3 of the SDK.

What's new?

A new onDeferredPurchase event

Thanks to this event you'll now be able to easily detect when a new purchase occurs outside of the buy method.

For instance this event can be trigerred:

  • After a purchase is made outside the app (by redeeming a promo code on the store by example)
  • After a deferred payment (when the error code 'deferred_payment' is returned by the buy method)
  • After a payment fails because it couldn't be validated by IAPHUB (and succeeds later)
  var listener = Iaphub.addEventListener('onDeferredPurchase', async (transaction) => {
    
  });

The enhancement of the restore method

The restore method will now return a IHRestoreResponse object.

This object will contain two properties:

  • newPurchases: The new purchases processed during the restore
  • transferredActiveProducts: The active products transferred (from another user) during the restore
var response = await Iaphub.restore();
// New purchases
console.log('New purchases: ', response.newPurchases);
// Extisting active products transferred to the user
console.log('Transferred active products: ', response.transferredActiveProducts);

New properties for the ActiveProduct object

  • isPromo
  • promoCode
  • originalPurchase