expo-in-app-purchases for ios subscription groups

Please provide the following:

  1. SDK Version: >=44.0.0-0 <45.0.0
  2. Platforms(Android/iOS/web/all): IOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I have two subscription groups:

  • Level 1
  • Level 2

In each group, I have 3 products:

  • level_1_sub_4.99
  • level_1_sub_6.99
  • level_1_sub_9.99
  • level_2_sub_4.99
  • level_2_sub_6.99
  • level_2_sub_9.99

Next, I fetch the products via:

 try {
        const { responseCode, results } = await InAppPurchases.getProductsAsync(
          AppStoreProductList
        );
        if (responseCode === InAppPurchases.IAPResponseCode.OK) {
          setItems(
            results.sort((a, b) => a.priceAmountMicros > b.priceAmountMicros)
          );
        }
      } catch (err) {
        console.log(err);
        setItems([]);
      }

Here is my AppStoreProductList for two product items:

export const AppStoreProductList = ["level_1_sub_4.99", "level_2_sub_9.99"];

When I console.log(items), it returns an array. Any idea what’s wrong?

> Blockquote

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.