Extends WooCommerce with a GoCardless gateway. A GoCardless merchant account is required.
This is a feature plugin for accepting payments via GoCardless. It requires WooCommerce to be installed before GoCardless for WooCommerce can be activated.
This extension is compatible with:
Install the following plugins on your dev site:
- WooCommerce
You can create a user on gocardless.com for live transactions and on the sandbox for test transactions. When you first set up a site, you’ll be prompted to create a user for the correct GoCardless environment when setting up the webhooks.
Where to enable GoCardless payment gateway:
Default GoCardless configuration:
Properly connected GoCardless configuration:
- PHP: 7.4+
- WordPress: 6.5+
- WooCommerce: 9.4+
- Node: v20
- NPM: v10
nvm install
- Ensures the required Node version is installed.npm install
- Installs the necessary dependencies.npm run build
- Creates a .zip archive containing the extension files for release or testing on other sites.npm run lint:js
- Runs ESLint on JavaScript files.npm run test:unit
- Executes PHPUnit tests.
- Create a sandbox GoCardless account for test transactions.
- Add sandbox GoCardless credentials to the
.env
file, which can be found in the./tests/e2e/config
directory.
GOCARDLESS_EMAIL=********
GOCARDLESS_PASSWORD=********
- Run
npm install
. - Run
npx playwright install
. - Run
npm run env:install-plugins
- Run
npm run env:start
(Note: Please start Docker before executing this command). - Add environment variables to the
/tests/e2e/config/.env
file (as mentioned above). - Run
npm run test:e2e-local
.
- Add the
needs: e2e testing
label to the pull request; it will initiate the E2E test GitHub action to run tests against the PR.