Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/types and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.

My request: [describe what customers should be able to do]
See an example request →

Types

Complete type reference for OpenIAP. Each type below has its own page with field definitions, examples, and related links.

Common#

TypeDescription
ProductBase product type with platform-specific extensions.
ProductSubscriptionSubscription product with billing periods and offers.
StorefrontStore region info from getStorefront().
PurchaseTransaction record from a successful purchase.
ActiveSubscriptionActive subscription with renewal status.
ProductRequestInput for fetchProducts (skus + type).
RequestPurchasePropsDiscriminated union for one-time purchases or subscriptions.
PurchaseUpdatedListenerOptionsOptions for purchase update listener replay behavior.
DiscountOfferStandardized Android one-time product offer details.
SubscriptionOfferCross-platform subscription offer details.

Validation#

TypeDescription
VerifyPurchase TypesVerifyPurchaseProps and VerifyPurchaseResult definitions.
VerifyPurchaseWithProviderPropsProvider-based verification input (e.g., IAPKit).
VerifyPurchaseWithProviderResultProvider-based verification response.
IapkitProductClientPayloadPublic TOML, JSON, or text data attached to an IAPKit product.

Alternative Billing#

TypeDescription
Billing ConfigurationInitConnectionConfig and current billing-program options.
Billing ProgramsGoogle Play Billing Programs API types (8.2.0+).
External Purchase LinkiOS external purchase link result types.

iOS Specific#

TypeDescription
SubscriptionPeriodIOSiOS subscription period units (Day/Week/Month/Year).
Subscription Billing PlansStoreKit 26.4 billing plan and commitment types for iOS subscriptions.
PaymentModeIOSiOS payment modes for promotional offers.
SubscriptionStatusIOSStoreKit 2 subscription status values.
AppTransactioniOS 16+ app transaction info.
RenewalInfoIOSStoreKit 2 subscription renewal details — auto-renew intent, billing-retry state, price-increase responses, JWS payload.

Android Specific#

TypeDescription
PricingPhaseAndroidAndroid pricing phases (intro / paid / free trial).