Jio Payments Solutions Ltd. WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jio-pay-wp/woocommerce-plugin/releases/download/v1.3.5/woo-jiopay-v1.3.5.zipJio Pay Gateway for WooCommerce
A complete payment gateway integration that allows WooCommerce stores to accept payments through Jio Pay's secure payment popup system. Fully compatible with WooCommerce High-Performance Order Storage (HPOS).
🚀 Features
- Complete WooCommerce Integration - Works with both classic and block-based checkout
- HPOS Compatible - Full support for WooCommerce High-Performance Order Storage
- Secure Payment Processing - Uses Jio Pay's official SDK with popup-based payments
- Order Management - Automatic order status updates and payment verification
- Multi-Environment Support - UAT and Live environment configurations
- Responsive Design - Works seamlessly on desktop and mobile devices
- Error Handling - Comprehensive error handling and user feedback
- Production Ready - Clean, optimized code suitable for production environments
- Auto-Updates - Built-in update notification system
📋 Requirements
- WordPress 5.0 or higher
- WooCommerce 3.0 or higher
- PHP 7.4 or higher
- SSL Certificate (Required for production)
- Jio Pay Merchant Account with valid credentials
✅ WooCommerce Compatibility
- Traditional Order Storage ✅ Fully supported
- High-Performance Order Storage (HPOS) ✅ Fully supported
- WooCommerce Blocks ✅ Fully supported
- Classic Checkout ✅ Fully supported
📁 Repository Structure
woo-jiopay/
├── woo-jiopay.php # Main plugin file - Entry point and configuration
├── includes/ # Core functionality classes
│ ├── class-woo-jiopay.php # Main payment gateway class
│ └── class-jio-pay-blocks.php # WooCommerce Blocks checkout support
├── assets/ # Frontend resources
│ ├── jio-pay-sdk.js # Jio Pay SDK library
│ ├── jio-pay-integration.js # Payment integration and event handling
│ ├── jio-pay-blocks.js # Block checkout React components
│ └── jio-pay-blocks.asset.php # Block dependencies configuration
└── README.md # This documentation file
File Descriptions
Core Files
woo-jiopay.php- Plugin entry point, handles WordPress hooks, script enqueuing, and gateway registrationclass-woo-jiopay.php- Main gateway class extending WC_Payment_Gateway, handles admin settings, payment processing, and AJAX endpointsclass-jio-pay-blocks.php- WooCommerce Blocks integration for modern checkout experience
Frontend Assets
jio-pay-sdk.js- Jio Pay's official SDK for secure payment popup functionalityjio-pay-integration.js- Custom integration layer handling checkout events, payment flow, and server communicationjio-pay-blocks.js- React components for WooCommerce block-based checkoutjio-pay-blocks.asset.php- Webpack-generated dependency configuration for block assets
🏪 WooCommerce HPOS Compatibility
This plugin is fully compatible with WooCommerce's High-Performance Order Storage (HPOS), also known as Custom Order Tables.
What is HPOS?
HPOS is WooCommerce's modern order storage system that uses dedicated database tables instead of WordPress posts for better performance and scalability.
Compatibility Features
- ✅ Automatic Detection - Plugin automatically detects and adapts to your store's order storage method
- ✅ Seamless Migration - Works with stores transitioning from traditional to HPOS storage
- ✅ Performance Optimized - Uses WooCommerce's recommended APIs for optimal performance
- ✅ Future Proof - Built with WooCommerce's latest standards and best practices
Checking HPOS Status
You can check your HPOS status in the plugin admin page:
- WooCommerce → Jio Pay Gateway
- Look for the "HPOS Compatibility" and "Order Storage" status indicators
🔧 Installation Instructions
Method 1: Manual Installation (Recommended)
-
Download the Plugin
git clone git@github.com:jio-pay-wp/woocommerce-plugin.git cd woocommerce-plugin -
Upload to WordPress
- Copy the entire
woo-jiopayfolder to your WordPress installation:cp -r woo-jiopay /path/to/wordpress/wp-content/plugins/
- Copy the entire
-
Set Correct Permissions
chmod -R 755 /path/to/wordpress/wp-content/plugins/woo-jiopay chown -R www-data:www-data /path/to/wordpress/wp-content/plugins/woo-jiopay -
Activate the Plugin
- Go to your WordPress Admin Dashboard
- Navigate to Plugins → Installed Plugins
- Find "Jio Pay Gateway" and click Activate
Method 2: FTP Upload
-
Download and Extract
- Download the repository as ZIP
- Extract the
woo-jiopayfolder
-
Upload via FTP
- Connect to your website via FTP
- Upload the
woo-jiopayfolder to/wp-content/plugins/
-
Activate via WordPress Admin
Method 3: WordPress Admin Upload
-
Create ZIP File
- Compress the
woo-jiopayfolder into a ZIP file
- Compress the
-
Upload via WordPress
- Go to Plugins → Add New → Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
⚙️ Configuration
1. Basic Setup
-
Navigate to WooCommerce Settings
- Go to WooCommerce → Settings → Payments
- Find "Jio Pay Gateway" and click Set up or Manage
-
Configure Payment Gateway
✅ Enable/Disable: Check "Enable Jio Pay" 📝 Title: "Jio Pay" (appears during checkout) 📝 Description: "Pay securely via Jio Pay popup" 🔑 Merchant ID: Your Jio Pay merchant ID 🔐 Secret Key: Your Jio Pay secret key 🌍 Environment: Select "UAT" for testing or "Live" for production
2. Test Configuration
For UAT Environment:
Merchant ID: JP2000000000031 (default test ID)
Secret Key: abc (default test key)
Environment: UAT
For Production:
- Use your actual Jio Pay merchant credentials
- Set Environment to "Live"
- Ensure SSL certificate is installed
3. Verify Installation
-
Check Payment Methods
- Go to your store's checkout page
- Add a product to cart and proceed to checkout
- Verify "Jio Pay" appears as a payment option
-
Test Payment Flow
- Select Jio Pay as payment method
- Click "Place Order"
- Verify the Jio Pay popup opens
- Complete a test transaction
🔐 Security Considerations
Production Checklist
- [ ] SSL Certificate installed and active
- [ ] Live Merchant Credentials configured
- [ ] Environment set to "Live"
- [ ] Test Mode disabled
- [ ] WordPress and WooCommerce updated to latest versions
- [ ] File Permissions properly set (755 for directories, 644 for files)
Security Features
- Nonce Verification - All AJAX requests include WordPress nonces
- Data Sanitization - All input data is properly sanitized
- Secure Communication - Uses HTTPS for all payment communications
- No Sensitive Data Storage - Payment details are not stored locally
🛠️ Development
Local Development Setup
-
Clone Repository
git clone git@github.com:jio-pay-wp/woocommerce-plugin.git cd woocommerce-plugin -
Install in Local WordPress
ln -s $(pwd)/woo-jiopay /path/to/local/wordpress/wp-content/plugins/ -
Enable WordPress Debug Mode
// In wp-config.php define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Customization
The plugin is designed to be easily customizable:
- Payment Options - Modify
jio-pay-integration.jsline 47-62 - Styling - Add custom CSS for the payment form
- Error Messages - Customize messages in the gateway class
- Success Flow - Modify the success redirect behavior
📚 API Reference
AJAX Endpoints
The plugin provides these AJAX endpoints:
jio_pay_create_session- Creates payment session (currently mock)jio_pay_verify_payment- Verifies completed payment and updates order status
JavaScript Events
- Payment Success -
handlePaymentSuccess(paymentResult) - Payment Failure -
handlePaymentFailure(error) - Payment Cancel -
handlePaymentCancel()
🐛 Troubleshooting
Common Issues
-
Payment Option Not Showing
- Verify WooCommerce is active
- Check if plugin is activated
- Ensure Merchant ID and Secret Key are configured
-
Popup Not Opening
- Check browser console for JavaScript errors
- Verify Jio Pay SDK is loading
- Test in different browsers
-
Payment Not Completing
- Check if
verify_paymentendpoint is accessible - Verify AJAX URLs are correct
- Check server error logs
- Check if
Debug Information
Enable WordPress debug mode and check logs at:
/wp-content/debug.log
/wp-content/uploads/wc-logs/
📞 Support
For technical support and questions:
- GitHub Issues: https://github.com/jio-pay-wp/woocommerce-plugin/issues
- Documentation: This README file
- WooCommerce Documentation: https://docs.woocommerce.com/
📄 License
This plugin is licensed under the GPL2 license. See the plugin header for full license information.
🔄 Changelog
Version 1.0.0
- Initial release
- Complete Jio Pay integration
- Support for both classic and block checkout
- Payment verification workflow
- Production-ready codebase
Made with ❤️ for WooCommerce stores using Jio Pay
Releases
Newest 25 of 32 recorded releases. Each count is every asset in that release; expand a row for the breakdown.