BetaData V1.0 Installation Guide
Developer: Drzakey
Company: Betadata Tech Ltd
Support WhatsApp: 08160970212
Version: 1.0
1. Server Requirements
BetaData V1.0 is a PHP/MySQL VTU automation script. Use a reliable hosting account or VPS with:
- PHP 8.1 or newer, recommended PHP 8.2/8.3
- MySQL or MariaDB
- Apache with `.htaccess` support
- PHP extensions: PDO, PDO MySQL, cURL, OpenSSL, JSON, mbstring, fileinfo
- HTTPS/SSL enabled
- cPanel, DirectAdmin, CyberPanel, or VPS access
2. Upload Script Files
- Log in to your hosting file manager or FTP.
- Open your public web directory, usually `public_html`.
- Upload the BetaData script files.
- If you upload a ZIP file, extract it inside the correct domain folder.
- Confirm that these folders are visible in the web root:
`admin`, `api`, `assets`, `auth`, `classes`, `config`, `includes`, `pages`, `script`, `user`.
3. Create Database
- Open MySQL Database Wizard in cPanel.
- Create a new database.
- Create a database user.
- Assign the user to the database with all privileges.
- Import the supplied SQL database file through phpMyAdmin.
If your package does not include an SQL file, contact the seller before installation is continued.
4. Configure `.env`
Copy `install/.env.example` to the project root and rename it to `.env`.
Update these values:
DB_HOST=localhost
DB_PORT=3306
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASS=your_database_password
APP_SECRET=change_to_a_long_random_secret
SESSION_NAME=betadata_sessionDo not share your `.env` file publicly.
5. Configure Site Name and URL
Open `config/constants.php` and update:
define('SITE_NAME', 'Your Brand Name');
define('SITE_URL', 'https://yourdomain.com');
define('SUPPORT_EMAIL', 'support@yourdomain.com');Make sure `SITE_URL` uses HTTPS and does not end with a slash.
6. Change WhatsApp Number
Change the WhatsApp number in these files:
- Landing page floating button:
`index.php`
Search for:
2348160970212
081 6097 0212Replace with your own WhatsApp number. Use international format for `wa.me`, for example:
2348012345678- Reusable WhatsApp button for dashboard/internal pages:
`includes/whatsapp-float.php`
Search for:
2348160970212Replace it with your own WhatsApp number in international format.
7. Change Logo, Favicon and App Icon
BetaData uses both text logo and image icons.
Text logo letter `B`:
- `index.php`
- `includes/pwa-install.php`
Search for:
<div class="logo-icon">B</div>Change `B` to your brand initial if needed.
Image logo:
- Replace `assets/images/logo.png`
Favicon and PWA icon:
- Replace `assets/images/favicon.png`
PWA app name/icon:
- Open `manifest.json`
- Update `name`, `short_name`, `description`, `theme_color`
- Keep icon paths pointing to your new icon file
Recommended icon sizes are 192x192 and 512x512 PNG.
8. Configure PWA Download App Feature
The landing page has a `Download App` button and an `Install PWA Now` button. They trigger the browser PWA install prompt when supported.
Important PWA files:
- `manifest.json`
- `sw.js`
- `assets/js/landing.js`
- `includes/pwa-install.php`
PWA installation requires HTTPS. On some browsers, the install prompt appears only after the visitor has interacted with the site.
9. Configure Push Notifications
Push notification files:
- `config/push_notification.php`
- `config/firebase-service-account.json`
- `api/register-fcm-token.php`
- `sw.js`
- `config/communications.php`
Setup steps:
- Create a Firebase project.
- Enable Firebase Cloud Messaging.
- Generate a service account JSON file.
- Upload it as:
`config/firebase-service-account.json`
- Open `config/push_notification.php`.
- Update:
define('FCM_PROJECT_ID', 'your-firebase-project-id');Do not expose `firebase-service-account.json` publicly. The included `.htaccess` protection helps block direct access, but hosting must also be configured correctly.
10. Configure Payment Gateways
Admin can configure payment settings from:
`admin/payment-settings.php`
Supported funding/payment options include:
- Paystack
- BillStack
- PaymentPoint
- PayVessel
- Manual bank transfer
Webhook URL examples:
https://yourdomain.com/api/webhook/billstack.php
https://yourdomain.com/api/webhook/paymentpoint.php
https://yourdomain.com/api/webhook/payvessel.phpDo not use `/index.php` after the webhook file unless your provider documentation specifically requires it.
11. Configure VTU/API Providers
Admin can manage providers from:
- `admin/api-providers.php`
- `admin/services.php`
- `admin/plans.php`
- `admin/smeplug-import.php`
Add provider base URL, API keys, service endpoints, primary provider and backup provider as required.
### Recommended Provider: BetaData API
BetaData V1.0 includes `BetaData API` as the recommended priority provider. This allows buyers of this script to run their own VTU website while vending through the main BetaData API.
Setup steps:
- Create an account on BetaData.
- Upgrade the account to API User.
- Open Profile or API Access and copy the API key.
- In the installed script, open `admin/api-providers.php`.
- Open `BetaData API`.
- Paste the copied API key into the API Key field.
- Use this base URL:
https://data.betadata.com.ng- Enable the provider.
- Open `admin/services.php`.
- Click `Make BetaData Primary`, or manually select `BetaData API` as the Primary API Provider for airtime, data, cable, electricity, exam pins and bulk SMS.
When using BetaData API for data, cable and exam pins, make sure the plan IDs in the buyer script match the plan IDs from the BetaData API.
12. Cron Jobs
If your hosting supports cron jobs, configure these scripts as needed:
script/process-communications.php
script/process-email-queue.phpRecommended interval: every 5 minutes or according to hosting/provider limits.
13. Admin Login
After database import, log in using the supplied admin credentials from the seller package.
Immediately change:
- Admin password
- Admin email
- Site settings
- API provider keys
- Payment gateway keys
- App secret
14. Production Checklist
Before going live:
- Confirm HTTPS works.
- Confirm `.env` is not accessible in browser.
- Confirm `config/firebase-service-account.json` is not accessible in browser.
- Replace test API keys with live keys.
- Replace test payment keys with live keys.
- Test wallet funding with a small amount.
- Test airtime purchase.
- Test data purchase for SME, GIFTING, CORPORATE, DIRECT and AWOOF where available.
- Test cable, electricity, exam PIN and bulk SMS if enabled.
- Test PWA install button on Chrome/Edge mobile.
- Test push notifications after Firebase setup.
- Remove demo users and demo transactions.
- Remove old logs and uploaded test files.
15. Support
For installation support, contact:
Drzakey - Betadata Tech Ltd
WhatsApp: 08160970212