Echezona Payments
The WordPress WooCommerce enabled plugin for Echezona payment gateway
by Echezona Digital Gateway Ltd · github.com/echezona-payments/echezona-woo-plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/echezona-payments/echezona-woo-plugin/archive/refs/heads/main.zipEchezona Payment Gateway for WooCommerce
A WooCommerce payment gateway plugin for accepting payments via Echezona Payment Gateway.
Features
- Accept payments via Echezona Payment Gateway
- Support for both classic and block-based checkout
- Test mode for development and testing
- Automatic order completion after successful payment
- Webhook support for payment status updates
- Support for multiple currencies
WordPress Blocks Support Implementation
This plugin now includes full support for WooCommerce Blocks, allowing the payment method to be used with the new checkout block experience.
Implementation Overview
-
Build System Setup
- Configured package.json with WordPress and React dependencies
- Set up webpack configuration to build JavaScript files
- Generated proper asset files for WordPress script registration
-
Block Support Implementation
- Created EchezonaPaymentContent component in src/index.js
- Set up proper payment method registration with WooCommerce Blocks API
- Implemented data passing between PHP and JavaScript via localized script data
-
PHP Integration
- Configured class-wc-eczp-blocks-payment-method.php for script registration
- Set up class-wc-eczp-blocks-support.php for WooCommerce Blocks integration
- Implemented proper data localization between server and client
Testing the Implementation
- Ensure the plugin is activated in WordPress
- Go to WooCommerce > Settings > Payments
- Enable Echezona Payment
- Create a new page with the WooCommerce Checkout block
- The payment method should appear in the checkout with proper styling
Development Workflow
To make changes to the block implementation:
- Modify the JavaScript code in
src/index.js - Run
yarn buildto compile the changes - Test in a WordPress environment with WooCommerce and WooCommerce Blocks enabled
Requirements
- WordPress 5.9+
- WooCommerce 6.0+
- WooCommerce Blocks 7.0+
Installation
- Download the plugin zip file
- Go to WordPress admin panel > Plugins > Add New
- Click "Upload Plugin" and select the downloaded zip file
- Click "Install Now" and then "Activate"
Configuration
- Go to WooCommerce > Settings > Payments
- Click on "Echezona Payment" to configure the gateway
- Enter your API keys and other settings
- Save changes
Development
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
Setup
- Clone the repository
- Run
npm installto install dependencies - Run
npm run buildto build the blocks assets - Run
npm run startto start development mode
Building
npm run build
Testing
npm run test:unit
Support
For support, please contact admin support or visit our support portal.
License
This plugin is licensed under the GPL v2 or later.
Credits
Developed by Echezona Payment Gateway Team.