Skip to content

WooCommerce

Requirements

Compatibility

  • Tested versions: Wordpress: 6.2, WooCommerce: 7.5.1, Woocommerce Subscriptions: 5.0.0
  • Compatible with PHP: 8.1.0

Installation

DANGER

Always backup your system before making any changes or upgrades!

WARNING

After updating to 2.2.0+ if some customers experience that they receive a "Gateway error" message when using an existing saved payment method, it can help if they remove that payment method and add it again.

WARNING

After updating to 2.3.0+, a Run database updates button will appear at the bottom of the "Custom payment gateway" settings page. It's imperative to click it after this update, and any further update that includes database updates.

  1. Download the compressed installation file .
  2. Log in to your Wordpress Admin.
  3. On the Admin Panel click Plugins.
  4. On the top of Plugins page click on "Add New".
  5. On the top of the Add Plugins page click on "Upload plugin".
  6. Press the "Choose File" button to open the downloaded woo-gw.zip file and press the "Install Now" button.
  7. Once installed go to your Plugins page and click on "Activate" under the "GW for WooCommerce" plugin.

Enabling payments

  1. Under the Wordpress Admin Panel click WooCommerce.
  2. Under the Woocommerce Panel click Settings.
  3. Go to the Payments tab.
  4. Two new elements have appeared on the list:
    • Payment Gateway - Credit Card (responsible for handling card payments)
    • Payment Gateway - eCheck (responsible for handling ACH payments)
  5. To enable the payment method, click on the "Enabled" switch

Configuration

To get to the settings page, either

  1. Under the Wordpress Admin Panel click "WooCommerce".
  2. Under the Woocommerce Panel click "Custom Payment Gateway".

or

  1. Under the Wordpress Admin Panel click "WooCommerce".
  2. Under the Woocommerce Panel click "Settings".
  3. Go to the "Payments" tab.
  4. Click "Set up" or "Manage" next to either "Payment Gateway - Credit Card" or "Payment Gateway - eCheck" payment method

To configure

  1. Both methods can be configured on the same page, along with some necessary gateway configuration

    1. Gateway

      • API key: the key with which the payment gateway identifies the user of the plugin. The type of the key should be set to "api" in the control panel.
      • URL: the url of the payment gateway without trailing slash or /api at the end

      Once these details have been provided, it's possible to test the API connection with the Test API connection button to ensure proper configuration.

      • Debug log: enable for debugging purposes
    2. Credit Card Payment

      • Title: the displayed title of the payment section at checkout.
      • Description: the displayed description of the payment section at checkout.
      • Transaction type: the chosen type of the transaction. There are two types:
        • Sale (Authorize and Capture)
        • Authorize Only
      • Enable saving of payment methods: enable to allow the customer to save payment details
      • Surcharge, Surcharge type, Surcharge title: Explained below
    3. eCheck Payment

      • Title: the displayed title of the payment section at checkout.
      • Description: the displayed description of the payment section at checkout.
      • Transaction type: the chosen type of the transaction. There are two types:
        • Sale (Authorize and Capture)
        • Authorize Only
      • Enable saving of payment methods: enable to allow the customer to save payment details
  2. Click on "Save changes".

Base URL

Integration test

For testing purposes use the url with the corresponding API key.

Going Live

Change the URL for with the correct API key.

Surcharge

  1. Under the Wordpress Admin Panel click WooCommerce.
  2. Under the Woocommerce Panel click Custom Payment Gateway
  3. Surcharge can be configured with these 3 fields:
    • Surcharge: the amount of surcharge in
      • cents (flat calculation)
      • percentage (percentage calculation)
    • Surcharge type:
      • None: no surcharge added to the base amount
      • Flat: the amount is added as a fixed amount to the base amount
      • Percentage: the amount is added as a percentage of the base amount to the base amount
    • Surcharge title: the title displayed for users during Checkout.
  4. Click on "Save changes".

Example

  • Percentage the value of 2.10 with the base amount of 10.10 means that the amount of the surchage added to the base amount will be 0.21.
  • Flat with value of 2.10 the surcharge amount will be a flat 2.10 added to the base amount.

Subscriptions

Starting from v2.1.0, WooCommerce Subscriptions is supported by the plugin.

Supported features

  • Simple subscriptions
  • Subscriptions with shipping
  • Subscription cancellation
  • Trial period

Configuration

  1. Under the Wordpress Admin Panel click WooCommerce.
  2. Under the Woocommerce Panel click Custom Payment Gateway
  3. To support Woocommerce Subscriptions, tick Enable saving of payment methods at the desired payment method
  4. Click on "Save changes".

Notes

  • If for some reason the payment method is not available at checkout it's because an unsupported feature is used.

  • Please be aware that transactions which haven't been settled yet can only be fully voided. Partial void is not possible.

Troubleshooting

Enable logging:

You can enable logging in: Woocommerce menu -> Custom Payment Gateway submenu

Clicking on the Debug log checkbox will enable log file creation. After the checkbox you will find a text: "Log requests, inside ..."

woocommerce_1_enable_logs.png

Open log files:

You can find log files in: Woocommerce menu -> Status submenu -> Logs tab

woocommerce_2_view_logs.png

You can open files: In the select field, find latest log file based on date and time. If selected it click View button to open this log file.

Log files named in this format: custom_payment_gateway-2024-01-11-abcdef.log

Test for Plugin and Theme Conflicts

It's possible that other plugins you have installed and/or the theme you're using can cause conflicts with the payment gateway plugin.

To test for this, please follow the instructions outlined in the guide below.

How to Test for Plugin and Theme Conflicts

If you have any problems:

Please send us the latest log messages (at the end of the file).

Write down the steps which led to the given error message.