Skip to main content

1.3.7 - OpenIAP 1.3.17 Sync

· One min read
Hyo

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.

data class InstallmentPlanDetailsAndroid(
/** Committed payments count after signup (e.g., 12 monthly payments) */
val commitmentPaymentsCount: Int,
/** Subsequent commitment payments when plan renews (0 if reverts to normal) */
val subsequentCommitmentPaymentsCount: Int
)

This is available on ProductSubscriptionAndroidOfferDetails.installmentPlanDetails.

PendingPurchaseUpdateAndroid (Billing Library 5.0+)

Details about pending subscription upgrades/downgrades.

data class PendingPurchaseUpdateAndroid(
/** Product IDs for the pending purchase update */
val products: List<String>,
/** Purchase token for the pending transaction */
val 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?

OpenIAP Versions

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

Installation

implementation("io.github.hyochan:kmp-iap:1.3.7")