# 🌐 cPanel Deployment Guide - CodexVertex

Aapka Gateway ab Live hone ke liye taiyar hai. cPanel par deploy karne ke liye niche diye gaye steps follow karein.

---

## 1. Files Upload
- Saari files (index.php, backend/, admin/) ko `public_html` mein upload karein.
- Agar aapne kisi sub-folder mein dala hai (e.g. `yourdomain.com/payment/`), toh URL wese hi adjust hoga.

## 2. HTTPS (SSL) Setup
- **ZAROORI:** Payment gateway hamesha `https://` par hona chahiye. 
- cPanel mein **"AutoSSL"** ya **"LetsEncrypt"** se free SSL enable karein.

## 3. Webhook (Android App) Update
Server par upload karne ke baad aapka URL badal jayega. Aapko Android app ka source code update karna hoga:

**File:** `android/app/src/main/java/com/arvindcodex/codexvertex/NotificationService.java`
- Niche di gayi line ko change karein:
```java
// Purana (Local):
private static final String API_URL = "http://172.27.88.172:8000/backend/payment.php";

// Naya (cPanel):
private static final String API_URL = "https://yourdomain.com/backend/payment.php";
```

## 4. Android Re-build
URL change karne ke baad, aapko naya APK build karna hoga aur phone mein install karna hoga:
```powershell
.\gradlew.bat clean assembleDebug
```

## 5. Security Note
- `backend/debug.log` file ko production mein monitor karein.
- Ensure karein ki `backend/config.php` mein `CURLOPT_SSL_VERIFYPEER` ko `true` kar dein agar aapka server pe SSL sahi se kaam kar raha hai (Production safety ke liye).

---

Ab aapka gateway poori duniya (Global) se accessible hoga! 🚀🦾🏦
