Payment Gateway Boilerplate for WooCommerce

This repository provides a robust boilerplate for integrating a custom payment gateway with WooCommerce. It streamlines development and ensures a secure, seamless payment experience.
🚀 Features
- Compatible with WooCommerce's latest version
- Supports both standard and block-based checkout
- Secure payment processing with API integration
- Easy configuration from WooCommerce settings
- Customizable UI and error handling
- Well-structured and modular code for easy modifications
- PayU gateway sample integration included
- Sandbox and live mode toggle support
- Admin payment logs for debugging
- Custom payment method title and description options
- Seamless redirect and callback handling
- Error and success notices with WooCommerce standards
🔧 Installation
- Download the repository as a ZIP file.
- Go to
WordPress Admin → Plugins → Add New. - Click Upload Plugin, choose the ZIP, and install.
- Activate the plugin.
- Navigate to
WooCommerce → Settings → Paymentsand configure with your API keys.
⚙️ Usage
- Enable the payment gateway in WooCommerce.
- Add your PayU (or other) API credentials.
- Test using sandbox mode before going live.
- Use logs for debugging under WooCommerce payment logs.
🛠 Development
Clone the repository to customize:
git clone https://github.com/Santosh-gautam/WooCommerce-Payment-Gateway-Boilerplate.git
Focus on modifying files inside /includes/ and /templates/.
💳 PayU Integration
This boilerplate uses PayU as a sample. You can swap it for any other provider by updating API methods and endpoints.
📩 Support & Contribution
For issues or contributions, create an issue or PR on GitHub.
📄 License
This project is licensed under the MIT License.
📬 Contact
For any inquiries, reach out at gatuamsantosh317@gmail.com
