Repository navigation
v1.0.0 - Initial Release 🚀
We're excited to announce the first release of MpesaPaywallPro - a WordPress plugin that integrates M-Pesa payment gateway with content paywall functionality, allowing you to monetize your website effectively.
Core Features
- M-Pesa Payment Integration - Seamless integration with M-Pesa Daraja API (STK Push)
- Content Paywall - Restrict premium content behind a secure paywall for posts and pages
- Admin Dashboard - Tabbed settings interface for easy configuration
- Plugin Update Checker - Automatic update notifications from GitHub releases
- Error Logging System - Comprehensive logging with daily rotation
- Internationalization - Translation-ready with Swahili (Kenya) included
Security Implementations
- Callback URL authentication with
mpp_authtoken - Pending transaction tracking via transients to prevent MITM attacks
- SSL verification and enforcement for all payment requests
- Safaricom IP validation for callback requests
- Content Security Policy headers (X-Content-Type-Options, X-Frame-Options, Referrer-Policy)
- Proper nonce verification with
wp_unslash()on all AJAX handlers - Direct access prevention on all plugin files
WordPress.org Compliance
- Output escaping with
esc_html_e()for all translatable strings - Timezone-safe date functions using
gmdate()andwp_date() - Proper input sanitization with
wp_unslash()on all superglobals - WordPress filesystem functions (
wp_delete_file()) for file operations - Correct text domain usage in all translation functions
Bug Fixes
- Fixed test connection handler mismatch (AJAX vs REST API)
- Fixed cookie value parsing with proper unslashing
- Fixed double semicolon syntax error in logger
- Fixed IP validation using
filter_var()with FILTER_VALIDATE_IP
Requirements
| Requirement | Version |
|---|---|
| WordPress | 6.2.1+ |
| PHP | 7.4+ (recommended: 8.1+) |
| Composer | Required |
| M-Pesa | Daraja API credentials |
Installation
- Download the zip file from this release
- Upload to WordPress via Plugins → Add New → Upload Plugin
- Activate the plugin
- Configure your M-Pesa credentials in the plugin settings
Links
Full Changelog: https://github.com/peanutsx50/MpesaPaywallPro/commits/v1.0.0