Solved

Check Eligibility in production Environment is sending "unknown"

  • 26 July 2023
  • 4 replies
  • 289 views

Badge

Hi, the app is using RC to make a purchase, I already update the bundle Id and the keys into the RC dashboard, However when I tried to make a purchase I’m seeing in the logs that is in sandbox env.

And when the Apple pay dialog is presented, it is displaying information about sandbox user.
 

My question: Should I modify something in the RC dashboard to user a production environment ?

2023-07-26 09:02:41.399867-0500 Sharpen[2703:1095151] [receipt] WARN: 🍎‼️ App running on sandbox without a receipt file. Unable to determine into eligibility unless you've purchased before and there is a receipt available.
request for these products because they were already cached: ["2023.07.premium.recurring.offer"]

2023-07-26 09:02:41.399717-0500 Sharpen[2703:1095151] [network] DEBUG: ℹ️ GetIntroEligibilityOperation: Started

2023-07-26 09:02:41.399867-0500 Sharpen[2703:1095151] [receipt] WARN: 🍎‼️ App running on sandbox without a receipt file. Unable to determine into eligibility unless you've purchased before and there is a receipt available.

2023-07-26 09:02:41.400901-0500 Sharpen[2703:1095151] [network] DEBUG: ℹ️ GetIntroEligibilityOperation: Finished

2023-07-26 09:02:41.400917-0500 Sharpen[2703:1083195] [eligibility] DEBUG: ℹ️ Caching trial or intro eligibility for products: []

icon

Best answer by sharif 28 July 2023, 17:15

View original

4 replies

Badge

is there a way to know the eligibility in testflight env, ?

I always received “unknown”

Userlevel 5
Badge +9

Hello,

There is no way for you to switch your app to production. Instead, when you submit your app to the app store, it automatically switches to production. Building and running from Xcode and TestFlight will always be sandbox.

There is a sandbox quirk where the receipt isn't created until you make a purchase. This doesn't happen in production because the receipt is created as soon as you download the app from the app store. In sandbox, you have to make a purchase in order to generate a receipt.

To test eligibility, you can create another in-app purchase and purchase it to  generate the receipt. Then, check the eligibility of the product you actually want to test.

Badge

got it, thank you for the clarification

Badge +2

@sharif , regarding 

“To test eligibility, you can create another in-app purchase and purchase it to generate the receipt.”

, would you please expand on how to “create another in-app purchase and purchase it”? 

I’m new to the subscription realm. Appreciate all the information you can share. 

Reply