PayJunction Hosted Payments Gateway Module for WooCommerce
Gateway module for the Woocommerce shopping cart plugin for WordPress. Uses PayJunction Hosted Payments service for increased security and PCI-DSS scope reduction.
by Matthew E. Cooper · github.com/toadalee/woocommerce-payjunction-hosted-payments · 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/toadalee/woocommerce-payjunction-hosted-payments/archive/refs/heads/master.zipPayJunction Hosted Payments Gateway for WooCommerce
WooCommerce payment gateway plugin for PayJunction Hosted Payments.
This version keeps compatibility with classic WooCommerce shortcode checkout and adds support for the WooCommerce Checkout block.
Features
- PayJunction Hosted Payments redirect flow.
- Classic checkout shortcode support through the WooCommerce payment gateway API.
- Checkout block support through WooCommerce Blocks payment method registration.
- Declares WooCommerce High-Performance Order Storage (HPOS) compatibility.
- Sandbox/test mode support.
- Refund support through the PayJunction REST API.
- WooCommerce logging support with redaction for potentially sensitive callback fields.
Installation
- Download or zip this folder.
- In WordPress, go to
Plugins > Add New > Upload Plugin. - Upload the zip file and activate the plugin.
- Go to
WooCommerce > Settings > Payments. - Enable
PayJunction Hosted Payments. - Configure sandbox or production credentials.
Use sandbox/test mode for all development and staging tests.
Testing Checklist
Test on a staging WordPress site before using this plugin on a live store.
- Enable WooCommerce and this plugin.
- Configure PayJunction sandbox credentials.
- Create a classic checkout page with
[woocommerce_checkout]. - Create a block checkout page with the WooCommerce Checkout block.
- Confirm the PayJunction payment method appears on both checkout pages.
- Place a test order from the classic checkout page.
- Place a test order from the block checkout page.
- Confirm each order redirects to PayJunction Labs.
- Confirm the PayJunction callback returns to the WooCommerce order received page.
- Confirm the order is marked paid and stores the transaction ID.
- Test tax, shipping, coupon discounts, and the
Simple Amountssetting. - Test a refund from the WooCommerce order admin.
- Temporarily enable debug logging and confirm logs do not contain raw card/account data.
- With HPOS enabled, confirm checkout, callback completion, and refunds still work.
HPOS Compatibility
This plugin declares compatibility with WooCommerce High-Performance Order Storage (HPOS), also known as custom order tables.
The payment flow uses WooCommerce order APIs for order reads/writes and PayJunction transaction mode metadata.
Security Notes
- Do not commit API passwords, production credentials, or customer payment data.
- Do not test live card processing from a development or staging site.
- Keep production mode changes behind a deployment review.