# SMM Order Status Cron Job Setup

## Step 1: Add to .env file
Add this line to your .env file:
```
CRON_KEY=your-secret-key-here-change-this
```

## Step 2: Setup Cron Job

### Using cPanel or Hosting Control Panel:
1. Go to Cron Jobs section
2. Add new cron job
3. Set to run every 5 minutes: */5 * * * *
4. Command:
```
wget -q -O - "https://yourdomain.com/cron/smm-status?key=your-secret-key-here-change-this"
```

### Using Windows Task Scheduler:
1. Create Basic Task
2. Trigger: Daily, repeat every 5 minutes
3. Action: Start a program
4. Program: `c:\xampp80\php\php.exe`
5. Arguments: `-r "file_get_contents('http://localhost/cron/smm-status?key=your-secret-key-here-change-this');"`

### Manual Test:
Visit in browser:
```
http://yourdomain.com/cron/smm-status?key=your-secret-key-here-change-this
```

You should see: {"success":true,"updated":0}

## What it does:
- Checks pending/in_progress SMM orders
- Updates their status from the provider API
- Runs every 5 minutes automatically
