Skip to main content

14.7.10 - OpenIAP 1.3.17 Sync

· One min read
Hyo
React Native IAP Maintainer

This release syncs with OpenIAP v1.3.17, adding new types for Google Play Billing Library 5.0+ and 7.0+ features.

New Types

InstallmentPlanDetailsAndroid (Billing Library 7.0+)

Subscription installment plan details for plans that allow users to pay in installments.

interface InstallmentPlanDetailsAndroid {
/** Committed payments count after signup (e.g., 12 monthly payments) */
commitmentPaymentsCount: number;
/** Subsequent commitment payments when plan renews (0 if reverts to normal) */
subsequentCommitmentPaymentsCount: number;
}

This is available on ProductSubscriptionAndroidOfferDetails.installmentPlanDetails.

PendingPurchaseUpdateAndroid (Billing Library 5.0+)

Details about pending subscription upgrades/downgrades.

interface PendingPurchaseUpdateAndroid {
/** Product IDs for the pending purchase update */
products: string[];
/** Purchase token for the pending transaction */
purchaseToken: string;
}

This is available on PurchaseAndroid.pendingPurchaseUpdateAndroid.

purchaseOptionIdAndroid (Billing Library 7.0+)

New field on DiscountOffer and ProductAndroidOneTimePurchaseOfferDetail to identify which purchase option the user selected.

// Available on DiscountOffer
discountOffer.purchaseOptionIdAndroid // string | null

OpenIAP Versions

PackageVersion
openiap-gql1.3.17
openiap-google1.3.28
openiap-apple1.3.14

Installation

yarn add react-native-iap@14.7.10