IapAndroid
react-native-iap / Exports / IapAndroid
Namespace: IapAndroid
Table of contents
Interfaces
Type Aliases
Variables
Functions
- acknowledgePurchaseAndroid
- deepLinkToSubscriptionsAndroid
- getInstallSourceAndroid
- isFeatureSupported
- validateReceiptAndroid
Type Aliases
BuyItemByType
Ƭ BuyItemByType: (type
: string
, skus
: Sku
[], purchaseToken
: string
| undefined
, replacementModeAndroid
: ReplacementModesAndroid
| -1
, obfuscatedAccountId
: string
| undefined
, obfuscatedProfileId
: string
| undefined
, subscriptionOffers
: string
[], isOfferPersonalized
: boolean
) => Promise
\<Purchase
>
Type declaration
▸ (type
, skus
, purchaseToken
, replacementModeAndroid
, obfuscatedAccountId
, obfuscatedProfileId
, subscriptionOffers
, isOfferPersonalized
): Promise
\<Purchase
>
Parameters
Name | Type |
---|---|
type | string |
skus | Sku [] |
purchaseToken | string | undefined |
replacementModeAndroid | ReplacementModesAndroid | -1 |
obfuscatedAccountId | string | undefined |
obfuscatedProfileId | string | undefined |
subscriptionOffers | string [] |
isOfferPersonalized | boolean |
Returns
Promise
\<Purchase
>
Defined in
Variables
AndroidModule
• Const
AndroidModule: AndroidModuleProps
Defined in
Functions
acknowledgePurchaseAndroid
▸ acknowledgePurchaseAndroid(token
): Promise
\<boolean
| void
| PurchaseResult
>
Acknowledge a product (on Android.) No-op on iOS.
Parameters
Name | Type | Description |
---|---|---|
token | Object | The product's token (on Android) |
token.developerPayload? | string | - |
token.token | string | - |
Returns
Promise
\<boolean
| void
| PurchaseResult
>
Defined in
deepLinkToSubscriptionsAndroid
▸ deepLinkToSubscriptionsAndroid(sku
): Promise
\<void
>
Deep link to subscriptions screen on Android.
Parameters
Name | Type | Description |
---|---|---|
sku | Object | The product's SKU (on Android) |
sku.sku | string | - |
Returns
Promise
\<void
>
Defined in
getInstallSourceAndroid
▸ getInstallSourceAndroid(): InstallSourceAndroid
Returns
Defined in
isFeatureSupported
▸ isFeatureSupported(feature
): Promise
\<boolean
>
Acknowledge a product (on Android.) No-op on iOS.
Parameters
Name | Type | Description |
---|---|---|
feature | FeatureType | to be checked |
Returns
Promise
\<boolean
>
Defined in
validateReceiptAndroid
▸ validateReceiptAndroid(«destructured»
): Promise
\<ReceiptType
>
Validate receipt for Android. NOTE: This method is here for debugging purposes only. Including your access token in the binary you ship to users is potentially dangerous. Use server side validation instead for your production builds
Parameters
Name | Type |
---|---|
«destructured» | Object |
› accessToken | string |
› isSub? | boolean |
› packageName | string |
› productId | string |
› productToken | string |
Returns
Promise
\<ReceiptType
>