Releases: iaphub/react-native-iaphub
Releases · iaphub/react-native-iaphub
v8.6.1
v8.6.0
v8.5.1
v8.5.0
v8.4.2
v8.4.1
v8.4.0
- 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
v8.3.2
v8.3.1
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 restoretransferredActiveProducts
: 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