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 successfulShould 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:
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.)