Overview
The Novac WooCommerce plugin is the official payment gateway integration for WooCommerce stores. It enables you to accept payments directly at checkout using Novac’s secure hosted checkout experience, with full support for cards, bank transfers, and mobile money.Prerequisites
See details
See details
Before you begin, ensure the following tools are installed on your machine:
- Node.js v20 or higher, required to run the build scripts
- pnpm the package manager used for all JavaScript dependencies
- WP-CLI used to interact with WordPress from the command line
- Webpack bundled via
wp-scriptsto compile and optimize plugin assets
Account Setup
Before accepting payments, you need to connect your Novac account to the plugin:- Navigate to the Novac Payments settings page in your WordPress admin.
- Enter your API key from the Novac Dashboard.
- Configure your Checkout preferences to match your store’s requirements.
Build Process
The plugin uses Webpack and UglifyJS as its core build tools to produce minified, production-ready JavaScript and CSS. This section is intended for developers who need to modify, debug, or reproduce the plugin build from source.Build Scripts
The following scripts define the full build pipeline. They are run in sequence to install dependencies, minify JavaScript, generate translation files, bundle assets, and produce the final plugin zip:Reproducing the Build
Follow these steps to clone the repository and produce a fresh plugin zip from source:1
Clone the Repository
Clone the plugin source code from GitHub:
2
Run the Setup Script
The setup script configures the local environment, including any server-side dependencies needed for the build:
3
Install Dependencies
Install all JavaScript dependencies defined in
package.json:4
Run the Build
Execute the full production build. This minifies JavaScript, compiles assets via Webpack, generates translation files, and packages everything into a plugin zip:
5
Download the Plugin Zip
If you prefer not to build from source, you can download the latest prebuilt plugin zip directly from the GitHub Releases page.