Open spidergears opened 10 months ago
We are also facing the same issue, keep getting the error: 'can't find product for sku...'
the same issue, 'can't find product for sku...'
how to solve problems ? 😪
guys.. you need to understand storekit1, or 2. and Please set setup({storekitMode: 'STOREKIT2_MODE'}); beginRefundRequest only available above iOS 15
This code will work
import { IapIosSk2, getProducts, setup } from "react-native-iap";
setup({ storekitMode: "STOREKIT2_MODE" });
await getProducts({ skus: ["sku"] });
await IapIosSk2.beginRefundRequest("sku");
Description
Calling
it fails with
[Error: Can't find product for sku <sku_here>]
I am using
useIAP
for the purchase process and have already called thegetProducts
call.It looks like before I can make the
beginRefundRequest
call, I probably should callgetItems
which would set the products array internally but this is not exposed by IapIosSk2.I may be completely wrong and may have misunderstood the implementation.
Expected Behavior
it should show the refund dialog screen
Environment:
To Reproduce