
PhpNuxBill Mpesa BANK STK Push
Uploaded: 24 Mar, 2025
Bank STK Push Integration for PHPNUXBILL
Overview
Easily integrate Bank STK Push into PHPNUXBILL with this simple yet effective solution. This integration allows seamless mobile banking payments, enhancing your billing and transaction processes within PHPNUXBILL.
Key Features
- Seamless Payment Processing – Enable secure Bank STK Push payments directly from PHPNUXBILL.
- Easy Configuration – Simple setup with minimal configuration required.
- Fully Compatible – Works with PHP 5.6 and higher.
- User-Friendly – Clear file structure and straightforward implementation.
- Secure Transactions – Ensures safe and encrypted transactions through bank integration.
Installation Guide
Prerequisites
Ensure you meet the following requirements before installation:
- PHP 5.6 or higher.
- CreateHotspotUser.php file in the root directory of your PHPNUXBILL installation. If you don’t have it, contact support at 0113015674.
Step-by-Step Installation
Unzip the provided folder – Inside, you’ll find the following files:
- BankStkPush.php – Main integration file.
- initiatebankstk.php – Handles the STK Push request.
- bankstkpush.tpl – UI template file.
- README.md – Installation guide.
Configure Your Credentials Open initiatebankstk.php and enter your API credentials:
- $consumerKey = ''; // Your app Consumer Key $consumerSecret = ''; // Your app Secret $BusinessShortCode = ''; // Your app Business Short Code $Passkey = ''; // Your app Business Passkey
File Placement Move the files into the correct directories within PHPNUXBILL:
- BankStkPush.php → Place inside the paymentgateway folder.
- initiatebankstk.php → Place inside the plugin folder.
- bankstkpush.tpl → Place inside the paymentgateway > ui folder.
Folder Structure After Installation
PHPNUXBILL/
├── paymentgateway/ │
├── BankStkPush.php │
├── ui/ │
├── bankstkpush.tpl
├── plugin/ │
├── initiatebankstk.php
Additional Notes
- Ensure correct file permissions to prevent any access issues.
- Test the integration thoroughly after installation.
- Refer to PHPNUXBILL documentation if additional configuration is needed.
Best Practices
- Version Control: Use Git or another version control system to track changes.
- Backups: Always back up your PHPNUXBILL directory before making modifications.
For support or troubleshooting, feel free to reach out or open an issue. Enhance your PHPNUXBILL billing experience with seamless Bank STK Push integration today!
Related Scripts







