Hello,
My app has 3 products, Monthly, Annual, and Lifetime packages in 1 offering.
On launch I call getOfferings, take the current offering, and store the packages. My paywall is dynamically generated based on these packages. When I try and call purchase() on my Annual or Lifetime packages it works fine, but my Monthly fails with a weird error:
2022-08-23 11:00:18.932233+0930 Pestle[44020:4973217] [Purchases] - INFO: 💰 Purchasing Product 'mymonthlyoffering' from package in Offering 'Pro Upgrade'
2022-08-23 11:00:23.562161+0930 Pestle[44020:4973974] [Default] [StoreKit] Received error that does not have a corresponding StoreKit Error:
Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={client-environment-type=Sandbox, storefront-country-code=AUS, NSLocalizedDescription=This item is not available.}
2022-08-23 11:00:23.562331+0930 Pestle[44020:4973974] [Default] [StoreKit] Purchase did not return a transaction: Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={client-environment-type=Sandbox, storefront-country-code=AUS, NSLocalizedDescription=This item is not available.}
2022-08-23 11:00:23.567551+0930 Pestle[44020:4973974] [Purchases] - ERROR: 🍎‼️ There was a problem with the App Store.
2022-08-23 11:00:23.573746+0930 Pestle[44020:4973974] [Purchases] - ERROR: 💰 Product purchase for 'mymonthlyoffering' failed with error: Error Domain=RevenueCat.ErrorCode Code=2 "There was a problem with the App Store." UserInfo={NSLocalizedDescription=There was a problem with the App Store., source_function=asPurchasesError, NSUnderlyingError=0x2803d1200 {Error Domain=StoreKit.StoreKitError Code=2 "Unable to Complete Request"}, readable_error_code=STORE_PROBLEM, source_file=RevenueCat/StoreKitError+Extensions.swift:43}
I can’t figure out why it’s failing, or why the Yearly and Annual work fine, and tips would be appreciated.