ChargX Documentation

WooCommerce

Integrating ChargX Payment Gateway with WooCommerce

This guide explains how to install, configure, and test the ChargX payment gateway inside your WooCommerce store.

Prerequisites:

  • A WordPress website running WooCommerce 6.0+
  • PHP 7.4+
  • A live or sandbox ChargX account
  • SSL certificate (required for live mode)

Step 1 — Install the ChargX WooCommerce Plugin

Method A — Install From Plugin ZIP

  1. Download latest plugin zip https://github.com/chargx/chargx-woocommerce-plugin/archive/refs/heads/main.zip (in a case you want to check release notes - check releases page https://github.com/chargx/chargx-woocommerce-plugin/releases)
  2. Login to your WordPress Admin Dashboard.
  3. Navigate to:
    Plugins → Add Plugin → Upload Plugin
  4. Upload the file: chargx-woocommerce-plugin-main.zip
  5. Click Install Now.
  6. After installation, click Activate.

Step 2 — Enable ChargX in WooCommerce

  1. Go to:
    WooCommerce → Settings → Payments
  2. Locate ChargX - ... in the payments list.
  3. Toggle the switch to Enabled for required payment methods (e.g. Pay-By-Bank, Credit Card, Apple Pay, Google Pay)
  4. Click Manage to open configuration settings.

WooCommerce Payment Methods list


Step 3 — Configure Your ChargX Credentials

You'll need credentials from your ChargX Dashboard.

SettingDescription
Live Publishable API KeyUsed for generating secure tokens in Production mode
Test Publishable API KeyUsed for generating secure tokens in Test mode
Live Secret API Key (Admin API)Used for server-side API calls in Production mode
Test Secret API Key (Admin API)Used for server-side API calls in Test mode
Sandbox / Test ModeSandbox or Production mode

Set API keys for WooCommerce ChargX plugin

Payment Options

ChargX supports multiple payment workflows:

OptionDescription
Pay-By-BankDirect bank transfer between bank accounts
Credit & Debit Cardse.g. Visa, MasterCard
Apple PayRequires Apple domain verification
Google PaySupported on compatible browsers

Enable or disable each option under the Payment Methods section in the plugin settings.

Step 4 — Test a Transaction

  1. Ensure Environment = SANDBOX in your store.
  2. Add a product to your cart and proceed to checkout.
  3. Select ChargX as the payment method.
  4. Use a test card from the ChargX developer docs - see Testing Guide
  5. Confirm the order and verify status updates in:
    • WooCommerce Orders Screen
    • ChargX Dashboard → Orders
WooCommerce Payment form

Troubleshooting

There are no payment methods available. Please contact us for help placing your order

WooCommerce - no payment methods available error

If you get a warning There are no payment methods available. Please contact us for help placing your order. on Checkout page, but the plugin is enabled and configured properly, you're very likely on the new WooCommerce Block-based Checkout, not the classic shortcode checkout which is used by the plugin.

The easiet solution is the following:

  1. Create a new page in WP admin:
    • Pages → Add New
    • Title: Checkout (Classic)
    • Content:
      [woocommerce_checkout]
    • Publish.
  2. In WooCommerce → Settings → Advanced → Checkout page, point the Checkout page to this new classic page.
  3. Add product to cart, then go to checkout - you should see the payment form now.
Create new page - Checkout (Classic)

Later we will add support of WooCommerce Blocks Payment API in the plugin.