Solved

App submission rejected due to restore purchase issue

  • 17 March 2024
  • 3 replies
  • 68 views

Badge +1

I am using PaywallView to present the subscription page. Here is the complete code:
 

    .sheet(isPresented: $showPaywall) {

      PaywallView()

        .onPurchaseCompleted { customerInfo in

          if customerInfo.isUnlimitedAccessAllowed {

            navigateToFeature()

          }

        }

        .onRestoreCompleted { customerInfo in

          if customerInfo.isUnlimitedAccessAllowed {

            navigateToFeature()

          }

       }

     }

 

Please let me know what do I need to do?

 

Here is the App submission rejection feedback:

We found that your in-app purchase products exhibited one or more bugs which create a poor user experience. Specifically, your app was loading indefinitely on the purchase page. Please review the details and resources below and complete the next steps.

Review device details:

- Device type: iPad Air (5th generation)
- OS version: iOS 17.4

Next Steps

When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.

Resources

- Learn how to set up and test in-app purchase products in the sandbox environment.
- For more information on receipt validation, see the In-App Purchase FAQ.
- If your app makes a SKReceiptRefreshRequest call and fails, do not retry the call. Assume the user does not have access. Continue by making the addPayment call.
- If your app makes a SKReceiptRefreshRequest call to restore previously purchased in-app purchases, make sure the app calls restoreCompletedTransactions when the user selects the "Restore" button.
Please see attached screenshot for details.

icon

Best answer by Haley Pace 20 March 2024, 16:05

View original

This post has been closed for comments

3 replies

Badge +1

Can someone from RevenueCat help me?

Userlevel 4
Badge +8

Hi, are you able to reproduce issues with purchasing or restoring in sandbox? If everything works properly in sandbox, then this would be an issue with the sandbox environment used by the reviewers as it is known to be an unstable environment. 

I would recommend re-submitting your app for review (some developers have submitted the same binary up to a dozen times before getting through). Just to clarify, there's nothing you as a developer or RevenueCat can do to resolve these errors except retrying later/resubmitting. The good news is that this typically only happens when an app is being launched for the first time- subsequent updates typically work as expected for the reviewer.

Badge +1

The app got approved after submitting again. Thanks!