Skip to main content
Answer

Not seeing sandbox purchases (non-subscription)

  • October 5, 2023
  • 4 replies
  • 1037 views

Forum|alt.badge.img+2

I have set up Products, Packages, and an Offering in RC and can see it in my app (using Expo + react-native-purchases SDK).  When I complete a sandbox purchase it is neither appearing in the Purchases.getCustomerInfo() response nor the RC admin console.

I also have ensured that I set the user ID with Purchases.logIn().

(I did not set up a sandbox user in App Store Connect but I presume that using my actual Apple account for sandbox transactions is okay.)

What am I doing wrong?

Sandbox purchase was successful
Should sandbox transactions appear here?

 

Best answer by Michael Fogel

Hey @peterbee !

 

“Your purchase was successful” each time but the logs show “[Error: The receipt is not valid.]” with every test purchase.

This error indicates the receipt is malformed or invalid. This error usually happens with configuration and usually occurs in the sandbox environment.

 

To fix this, we recommend the following troubleshooting steps:

If testing with StoreKit Configuration Files:

Some other places to check:

 

Let me know if that helps! 

This post has been closed for comments

4 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • October 11, 2023

Hey @peterbee!

Sounds like something definitely isn’t working right if you aren’t seeing the resulting purchase in CustomerInfo or the dashboard. Do you have debug logs from the SDK reproducing the behavior? That may help to point to what’s happening.

(I did not set up a sandbox user in App Store Connect but I presume that using my actual Apple account for sandbox transactions is okay.)

Strange - I don’t believe normal Apple IDs work for sandbox transactions. Can you try making a test account as detailed in our docs? https://www.revenuecat.com/docs/apple-app-store


Forum|alt.badge.img+2
  • Author
  • New Member
  • October 14, 2023

I created a new sandbox user and have completed several more test purchases.

 

The alert still says “Your purchase was successful” each time but the logs show “[Error: The receipt is not valid.]” with every test purchase.


Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • Answer
  • October 16, 2023

Hey @peterbee !

 

“Your purchase was successful” each time but the logs show “[Error: The receipt is not valid.]” with every test purchase.

This error indicates the receipt is malformed or invalid. This error usually happens with configuration and usually occurs in the sandbox environment.

 

To fix this, we recommend the following troubleshooting steps:

If testing with StoreKit Configuration Files:

Some other places to check:

 

Let me know if that helps! 


Forum|alt.badge.img+2
  • Author
  • New Member
  • October 16, 2023

Shared Secret was the culprit!  Thanks @Michael Fogel!

 

(It is interesting that the transaction appears to be completed, but actually is not.)