T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/soundstudiopro.com/private_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/TESTING_SUBSCRIPTION_GUIDE.md
# Testing Subscription System - Quick Guide

## For Stephan (or any test user)

### 1. **Subscribe to Essential Plan**
- Go to: `https://soundstudiopro.com/subscribe_essential.php`
- Click "Subscribe Now - $5/month"
- Complete Stripe checkout (use test card: `4242 4242 4242 4242`)
- After payment, you'll be redirected to success page

### 2. **View Subscription Status**
- Go to: `https://soundstudiopro.com/manage_subscription.php`
- Or: Account Settings → Subscription tab
- You should see:
  - Current plan: Essential
  - Status: Active
  - Monthly usage: 0 / 5 tracks
  - Renewal date

### 3. **Test Track Creation Limits**
- Try creating 5 tracks (should work)
- Try creating 6th track (should be blocked with message)
- Check usage counter updates on manage_subscription.php

### 4. **Cancel Subscription** ✅ Easy
- Go to: `https://soundstudiopro.com/manage_subscription.php`
- Click "Cancel Subscription"
- Confirm cancellation
- Subscription remains active until period end
- You'll see warning: "Set to cancel on [date]"

### 5. **Reactivate Subscription** ✅ Easy
- If you canceled, you'll see "Reactivate Subscription" button
- Click it to reactivate immediately
- Subscription continues normally

### 6. **Upgrade/Downgrade** (Future)
- Currently only Essential plan exists
- When more plans are added, upgrade/downgrade buttons will appear
- For now, users can cancel and subscribe to a different plan

## Admin Testing

### View All Subscriptions
- Admin Panel → Subscriptions tab
- See all active/canceled subscriptions
- Filter by status or plan
- View monthly usage for each user

### Test Monthly Reset
- Manual reset: `/cron/reset_monthly_limits.php?cron_key=YOUR_SECRET_CRON_KEY`
- Or wait for automatic reset on 1st of month

## Stripe Testing

### Test Cards
- **Success**: `4242 4242 4242 4242`
- **Decline**: `4000 0000 0000 0002`
- **3D Secure**: `4000 0025 0000 3155`

### Webhook Testing
- Use Stripe CLI: `stripe listen --forward-to https://soundstudiopro.com/webhooks/stripe.php`
- Or use Stripe Dashboard → Webhooks → Send test webhook

## Common Issues & Solutions

### Issue: "Subscription not showing after payment"
- **Check**: Webhook received? (Admin → Webhooks tab)
- **Check**: `user_subscriptions` table has record?
- **Fix**: Manually trigger webhook or check Stripe Dashboard

### Issue: "Can't create tracks even with subscription"
- **Check**: User plan is 'essential'? (Admin → Users)
- **Check**: Subscription status is 'active'?
- **Check**: Monthly usage not exceeded?

### Issue: "Cancel button not working"
- **Check**: Stripe API key correct?
- **Check**: Subscription ID exists in database?
- **Check**: Browser console for errors

## Quick Links

- **Subscribe**: `/subscribe_essential.php`
- **Manage**: `/manage_subscription.php`
- **Admin View**: `/admin.php?tab=subscriptions`
- **Database Setup**: `/create_subscription_tables.php` (admin only)

## Testing Checklist

- [ ] Subscribe to Essential plan
- [ ] Create 5 tracks (should work)
- [ ] Try 6th track (should be blocked)
- [ ] View usage counter
- [ ] Cancel subscription
- [ ] Reactivate subscription
- [ ] Check admin panel shows subscription
- [ ] Test webhook events (create/update/delete)
- [ ] Test monthly reset (manual or wait for 1st)


CasperSecurity Mini