Skip to main content

IapAndroid

react-native-iap / Exports / IapAndroid

Namespace: IapAndroid

Table of contents

Interfaces

Type Aliases

Variables

Functions

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
NameType
typestring
skusSku[]
purchaseTokenstring | undefined
replacementModeAndroidReplacementModesAndroid | -1
obfuscatedAccountIdstring | undefined
obfuscatedProfileIdstring | undefined
subscriptionOffersstring[]
isOfferPersonalizedboolean
Returns

Promise\<Purchase>

Defined in

modules/android.ts:38

Variables

AndroidModule

Const AndroidModule: AndroidModuleProps

Defined in

modules/android.ts:76

Functions

acknowledgePurchaseAndroid

acknowledgePurchaseAndroid(token): Promise\<boolean | void | PurchaseResult>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
tokenObjectThe product's token (on Android)
token.developerPayload?string-
token.tokenstring-

Returns

Promise\<boolean | void | PurchaseResult>

Defined in

modules/android.ts:153


deepLinkToSubscriptionsAndroid

deepLinkToSubscriptionsAndroid(sku): Promise\<void>

Deep link to subscriptions screen on Android.

Parameters

NameTypeDescription
skuObjectThe product's SKU (on Android)
sku.skustring-

Returns

Promise\<void>

Defined in

modules/android.ts:89


getInstallSourceAndroid

getInstallSourceAndroid(): InstallSourceAndroid

Returns

InstallSourceAndroid

Defined in

modules/android.ts:78


isFeatureSupported

isFeatureSupported(feature): Promise\<boolean>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
featureFeatureTypeto be checked

Returns

Promise\<boolean>

Defined in

modules/android.ts:168


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

NameType
«destructured»Object
› accessTokenstring
› isSub?boolean
› packageNamestring
› productIdstring
› productTokenstring

Returns

Promise\<ReceiptType>

Defined in

modules/android.ts:112