IapIosSk2
react-native-iap / Exports / IapIosSk2
Namespace: IapIosSk2
Table of contents
Interfaces
Type Aliases
Functions
- beginRefundRequest
- currentEntitlement
- finishTransaction
- isEligibleForIntroOffer
- latestTransaction
- showManageSubscriptions
- subscriptionStatus
- sync
Type Aliases
BuyProduct
Ƭ BuyProduct: (sku
: Sku
, andDangerouslyFinishTransactionAutomaticallyIOS
: boolean
, applicationUsername
: string
| undefined
, quantity
: number
, withOffer
: Record
\<keyof PaymentDiscountSk2
, string
> | undefined
) => Promise
\<TransactionSk2
>
Type declaration
▸ (sku
, andDangerouslyFinishTransactionAutomaticallyIOS
, applicationUsername
, quantity
, withOffer
): Promise
\<TransactionSk2
>
Parameters
Name | Type |
---|---|
sku | Sku |
andDangerouslyFinishTransactionAutomaticallyIOS | boolean |
applicationUsername | string | undefined |
quantity | number |
withOffer | Record \<keyof PaymentDiscountSk2 , string > | undefined |
Returns
Promise
\<TransactionSk2
>
Defined in
Functions
beginRefundRequest
▸ beginRefundRequest(sku
): Promise
\<RefundRequestStatus
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<RefundRequestStatus
>
Defined in
currentEntitlement
▸ currentEntitlement(sku
): Promise
\<TransactionSk2
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<TransactionSk2
>
Defined in
finishTransaction
▸ finishTransaction(transactionIdentifier
): Promise
\<Boolean
>
Parameters
Name | Type |
---|---|
transactionIdentifier | string |
Returns
Promise
\<Boolean
>
Defined in
isEligibleForIntroOffer
▸ isEligibleForIntroOffer(groupID
): Promise
\<Boolean
>
Parameters
Name | Type |
---|---|
groupID | string |
Returns
Promise
\<Boolean
>
Defined in
latestTransaction
▸ latestTransaction(sku
): Promise
\<TransactionSk2
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<TransactionSk2
>
Defined in
showManageSubscriptions
▸ showManageSubscriptions(): Promise
\<null
>
Returns
Promise
\<null
>
Defined in
subscriptionStatus
▸ subscriptionStatus(sku
): Promise
\<ProductStatus
[]>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<ProductStatus
[]>
Defined in
sync
▸ sync(): Promise
\<null
>
Sync state with Appstore (iOS only) https://developer.apple.com/documentation/storekit/appstore/3791906-sync
Returns
Promise
\<null
>