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/STRIPE_SETUP_REQUIRED.md
# ⚠️ Stripe Setup Required for Subscriptions

## The Error: "Invalid array" or "Subscription not configured"

This error occurs because **Stripe Price IDs haven't been set up yet** in your Stripe Dashboard.

---

## 🔧 How to Fix

### Step 1: Create Products in Stripe Dashboard

Go to: **Stripe Dashboard → Products**

Create 5 products (one for each subscription tier):

1. **Essential Plan**
   - Name: "Essential Plan"
   - Description: "5 tracks per month subscription"
   - Type: Service

2. **Starter Plan**
   - Name: "Starter Plan"  
   - Description: "20 tracks per month subscription"
   - Type: Service

3. **Pro Plan**
   - Name: "Pro Plan"
   - Description: "75 tracks per month subscription"
   - Type: Service

4. **Premium Plan**
   - Name: "Premium Plan"
   - Description: "200 tracks per month subscription"
   - Type: Service

5. **Enterprise Plan**
   - Name: "Enterprise Plan"
   - Description: "1000 tracks per month subscription"
   - Type: Service

### Step 2: Create Prices for Each Product

For each product, create a **Recurring Price**:

1. Click on the product
2. Click "Add price"
3. Set:
   - **Billing period**: Monthly
   - **Price**: 
     - Essential: $5.00
     - Starter: $15.00
     - Pro: $35.00
     - Premium: $75.00
     - Enterprise: $349.00
   - **Currency**: USD
4. Click "Add price"
5. **Copy the Price ID** (starts with `price_`)

### Step 3: Update Config File

Edit: `/config/subscription_plans.php`

Replace the placeholder Price IDs:

```php
'essential' => [
    // ...
    'stripe_price_id' => 'price_XXXXXXXXXXXXX', // Replace with actual Price ID
],
'starter' => [
    // ...
    'stripe_price_id' => 'price_XXXXXXXXXXXXX', // Replace with actual Price ID
],
// ... etc for all plans
```

### Step 4: Test

1. Go to `/subscribe.php?plan=essential`
2. Click "Subscribe Now"
3. Should redirect to Stripe Checkout

---

## 📝 Quick Checklist

- [ ] Created 5 products in Stripe Dashboard
- [ ] Created monthly recurring prices for each
- [ ] Copied all 5 Price IDs
- [ ] Updated `config/subscription_plans.php` with real Price IDs
- [ ] Tested subscription signup

---

## 🔍 How to Find Price IDs

1. Stripe Dashboard → Products
2. Click on a product
3. Under "Pricing", you'll see the price
4. Click the price
5. The Price ID is shown at the top (starts with `price_`)

Example: `price_1ABC123def456GHI789jkl012`

---

## ⚠️ Important Notes

- **Price IDs are different from Product IDs**
- **Use the Price ID, not Product ID**
- **Price IDs start with `price_`**
- **Keep Price IDs secret** (they're in your config file)

---

## 🆘 Still Getting Errors?

Check:
1. Price ID is correct (starts with `price_`)
2. Price is set to "Recurring" and "Monthly"
3. Price amount matches config ($5, $15, $35, $75, $349)
4. Stripe API key is correct (live mode vs test mode)
5. Check error logs: `/logs/` directory


CasperSecurity Mini