EPaySe
WooCommerce

WooCommerce Plugin Usage Guide

Learn how to use the EPaySe payment gateway in your WooCommerce store: checkout experience, order management, refunds, and troubleshooting.

Checkout Experience

The EPaySe plugin supports two checkout modes. The mode is configured in the plugin settings.

Redirect Mode

In Redirect mode, the customer clicks "Place Order" and is redirected to the EPaySe hosted checkout page. After completing payment, they are returned to your store's order confirmation page.

Iframe Mode

In Iframe mode, the EPaySe payment form is embedded directly on your checkout page. The customer completes payment without leaving your site, providing a seamless experience.

Checkout page with EPaySe Payment selected
WooCommerce checkout page showing EPaySe payment option
Checkout page with EPaySe Payment selected

Order Management

View Payment Details

After a customer pays, the order detail page in WooCommerce displays EPaySe-specific information:

  • Payment method: Shows "EPaySe Payment"
  • Order notes: Webhook events are logged as order notes (payment completed, failed, etc.)
Order detail page with EPaySe payment information
WooCommerce order detail page showing EPaySe payment information
Order detail page with EPaySe payment information

Transaction Statuses

The following table shows how EPaySe transaction statuses map to WooCommerce order statuses:

EPaySe EventWooCommerce StatusDescription
transaction.completed
Processing
Payment received successfully
transaction.failed
Failed
Payment was declined or failed
refund.completed
Refunded
Refund processed successfully
refund.failed
Unchanged
Refund attempt failed, order note added

Process Refunds

The EPaySe plugin supports both full and partial refunds directly from WooCommerce.

How to Refund

  1. Go to WooCommerce → Orders and open the order
  2. Click the Refund button below the order items
  3. Enter the refund amount (full order total or a partial amount)
  4. Optionally enter a reason for the refund
  5. Click Refund via EPaySe to process the refund through the EPaySe API

Webhook Events

The plugin listens for the following webhook events from EPaySe. Each event triggers an order status update and is logged as an order note.

EventAction
transaction.completedMarks order as paid, adds transaction ID to order, triggers WooCommerce "payment complete" flow
transaction.failedUpdates order status to Failed, adds failure reason to order notes
refund.completedConfirms refund on the order, updates stock if applicable
refund.failedAdds a note to the order explaining the refund failure

Debug & Troubleshooting

Enable Debug Logging

To troubleshoot issues, enable debug mode in the plugin settings:

  1. Go to WooCommerce → Settings → Payments → EPaySe → Manage
  2. Check Enable debug logging under Advanced Settings
  3. View logs at WooCommerce → Status → Logs and filter by source epayse
WooCommerce Logs filtered by 'epayse' source
WooCommerce Logs page filtered by epayse source
WooCommerce Logs filtered by 'epayse' source

Common Issues

IssueSolution
Payment form not showingCheck that the plugin is enabled and API credentials are configured correctly
Order stuck on "Pending payment"Verify webhook URL is correctly set in EPaySe dashboard and Webhook Secret matches
"Invalid signature" in logsEnsure API Secret matches the one in your EPaySe dashboard. Regenerate if needed.
Webhook events not receivedEnsure your site is accessible from the internet (not localhost) and SSL is enabled
Refund fails with API errorCheck that the transaction was completed (not pending) and the refund amount does not exceed the original amount

Related Resources

Explore installation instructions and API documentation.