Check 1 returns active, Check 2 unlocks your app. 🎉 You're done. Submit your app.
Check 1 returns active, Check 2 stays gated. Your APP_SLUG in the snippet doesn't match what AppGild has. Re-check the slug in your gate code matches your listing URL exactly.
Check 1 returns no_active_purchase, you swear the key is valid. Two likely causes: (a) the key has a typo (regenerate the buyer's key on their /purchases page if needed), or (b) the slug in your gate code doesn't match this app's listing slug.
Check 1 returns active, Check 2 throws a CORS error in browser console. Your gate code probably has credentials: 'include' in the fetch call — remove that. The reference snippet doesn't include it.