I created this app with Expo and made a couple of offerings with Revenuecat. Now I want to test it. The packages appear,
- I hit subscribe,
- The popup appears, I write password and hit subscribe,
- It says done (without the tick appearing, just a circle) and the whole popup disappears, but after 3 seconds, the purchase popup (Sandbox) reappears again and again.
- No matter how many times I hit subscribe, it says done and re-appears.
- There is no record of subscription in my Revenuecat account (yes the sandbox checkbox ticked), and I have registered a sandbox user (valid email with a password) on App Store users.
I’m very new to Sandbox testing and I use iOS simulator (17). Does anyone know what to do form here? Checked the Internet and not much was found.
By the way, the code does not seem to go through anything after the purchase, it does not show the `console.log` after the function: Here’s the purchase function:
const subscribe = async(item) => {
try {
const {purchaserInfo} = await Purchases.purchasePackage(item)
console.log('purchase info: ', purchaserInfo)
const purchase = await Purchases.getCustomerInfo()
console.log('purchase: ', purchase)
if(typeof purchase.entitlements.activen'pro'] !== 'undefined') {
await navigation.navigate('Account')
}
} catch (error) {
console.log(error)
}
}
Some screenshots:
![](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/7c776671-123c-42c9-83f7-07ea921af3cd.png)
![](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/e787f09a-65a2-40e5-a26e-ba703de048d0.png)
![](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/80ca0de2-7973-4451-a095-05e80feffe16.png)