Skip to main content

Configuration in WooCommerce

1. Settings

The module settings are found in the menu WooCommerce -> Settings -> Payment gateways. Click on EPay at the top of the screen.

TitleWrite the name of the payment method here. This is the name your customers will see at checkout. E.g. "Pay with credit card".
DescriptionInclude a short description of the payment method. Your customers will see the description at checkout.
Merchant numberThe merchant number you received from ePay. You can find your merchant number in the ePay administration in the menu Settings -> Payment system.
Window IDChoose which version of the payment window to use: You can create different versions from the ePay administration via the menu Settings -> Payment window. Use this to set up e.g. different texts for foreign customers, different payment card logos, or different settings for transaction fees.
MD5 keyIf you've activated MD5 in ePay, you have to enter your key here (the same key you entered in your ePay administration). The keys must be identical in the two systems.
Instant captureBy enabling this setting, the payment is captured immediately. You can only use instant capture if the customers receive their products immediately, too (for instance by downloading).
GroupYou can divide your payments into different groups and limit your ePay users' access to specific groups. A group is a name/string. Leave the field empty if you don't want to use groups (default).
Auth MailEnter an email address here to receive an email every time a payment is completed. You can separate addresses with a semicolon (;) if you have multiple recipients. Leave the field empty if you don't want to use this service.
Own ReceiptActivate this to direct your customers to your own order confirmation page in WooCommerce after completed payment.
Remote interfaceBy activating Remote interface (API), you can capture, credit and delete payments from WooCommerce. This means you don't have to log in to ePay's administration to process payments.
Remote passwordEnter the password you entered in your ePay administration.
Invoice dataEnable this to send invoice data to the payment window. You can use invoice data to make invoice payments through Klarna or send receipts through Read more about invoice data in our technical documentation.
Add fee to orderEnable this to show the transaction fee on the order page. You define if you pay the transaction fee or you place it on the customer from your ePay administration in the menu Settings -> Payment window.

The above functions are integrated in the WooCommerce module, but you can manually apply all the functions we offer. To do so, define the relevant parameters in your module files. See all available parameters here.

2. Subscription payments

ePay's module supports subscription (recurring) payments per default. All you need to do is install the plugin from WooCommerce Subscriptions.

Please note that you must register the IP address of your website on your ePay administration under API/Webservices -> Access.

3. Process payments from WooCommerce

You can process payments from the administration in WooCommerce. This means that you don't have to log into your ePay administration to capture, credit, or delete payments.

Activate "Remote interface" in the settings for the ePay module in WooCommerce.

Open your ePay administration, and go to API/Webservices -> Access in the menu. Enter the IP address of your WooCommerce installation.

When viewing an order in WooCommerce, you'll see information about the payment. You can see:

  • Transaction number
  • Order number
  • Currency
  • Authorised amount and timestamp
  • Captured amount and timestamp
  • Credited amount and timestamp
  • Description (if any)
  • Cardholder's name (if any)
  • Transaction fee (if any)

To capture a payment in WooCommerce, find and click on the order number in the orders menu, and press Capture on the right. You can delete the payment here as well. When a payment has been captured, a Credit button appears. Click on the button to refund the payment (or part of the payment).