Skip to content
Santosh Gautam

SANTOSH GAUTAM

Full Stack Developer

Payment Gateway Boilerplate for WooCommerce

Preview of WooCommerce Payment Gateway Boilerplate by santosh gautam hisantosh.com

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

  1. Download the repository as a ZIP file.
  2. Go to WordPress Admin → Plugins → Add New.
  3. Click Upload Plugin, choose the ZIP, and install.
  4. Activate the plugin.
  5. Navigate to WooCommerce → Settings → Payments and configure with your API keys.

⚙️ Usage

  1. Enable the payment gateway in WooCommerce.
  2. Add your PayU (or other) API credentials.
  3. Test using sandbox mode before going live.
  4. 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