expo-iap 2.2.7-rc.1 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/iap.md +3 -0
- package/package.json +1 -1
package/iap.md
CHANGED
|
@@ -147,6 +147,7 @@ This section describes purchase properties in `expo-iap`.
|
|
|
147
147
|
### Android-Only Purchase Types
|
|
148
148
|
|
|
149
149
|
- **`ProductPurchase`**:
|
|
150
|
+
|
|
150
151
|
- Adds the following properties specific to in-app product purchases:
|
|
151
152
|
- **`ids`**: `string[]` - A list of product IDs associated with the purchase (for multi-item purchases).
|
|
152
153
|
- **`dataAndroid`**: `string` - The raw purchase data from Google Play (e.g., JSON payload).
|
|
@@ -154,6 +155,7 @@ This section describes purchase properties in `expo-iap`.
|
|
|
154
155
|
- **`purchaseStateAndroid`**: `number` - The state of the purchase (e.g., 0 = purchased, 1 = canceled, 2 = pending).
|
|
155
156
|
|
|
156
157
|
- **`SubscriptionPurchase`**:
|
|
158
|
+
|
|
157
159
|
- Extends the base properties and includes:
|
|
158
160
|
- **`autoRenewingAndroid`**: `boolean` - Indicates whether the subscription automatically renews (true) or not (false).
|
|
159
161
|
|
|
@@ -163,6 +165,7 @@ This section describes purchase properties in `expo-iap`.
|
|
|
163
165
|
### iOS-Only Purchase Types
|
|
164
166
|
|
|
165
167
|
- **`ProductPurchase`**:
|
|
168
|
+
|
|
166
169
|
- Extends the base purchase properties with iOS-specific fields:
|
|
167
170
|
- **`quantityIos`**: `number` - The quantity of the product purchased (e.g., how many units of an item were bought).
|
|
168
171
|
- **`expirationDateIos`**: `number?` - The expiration date of the purchase as a Unix timestamp (in milliseconds), if applicable (optional, may be null for non-expiring products).
|