Skip to content

Commit

Permalink
feat: Added export finishTransaction() from StoreKit2. (#2664)
Browse files Browse the repository at this point in the history
Added a previously missing exported function that allows manual
completion of transactions in **StoreKit2**.

Function has already been described in the interface of the
**IosModulePropsSk2** in the codebase but lacked accessible invocation.

The function is crucial and must be used to manually complete
transactions in in-app purchases using **StoreKit2**.
  • Loading branch information
khrulev committed Jan 15, 2024
1 parent 4dd04c3 commit a823393
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/iosSk2.ts
Expand Up @@ -102,3 +102,9 @@ export const beginRefundRequest = (sku: string): Promise<RefundRequestStatus> =>
*/
export const showManageSubscriptions = (): Promise<null> =>
RNIapIosSk2.showManageSubscriptions();

/**
*
*/
export const finishTransaction = (transactionIdentifier: string): Promise<Boolean> =>
RNIapIosSk2.finishTransaction(transactionIdentifier);

0 comments on commit a823393

Please sign in to comment.