WooCommerce
Integrate HitPay payment gateway into your WooCommerce store
Account Setup
Before you begin integrating HitPay payments into your WooCommerce store, you need to set up your HitPay account and ensure some prerequisites are met:
- If you haven’t already, create an account on HitPay.
- Ensure that you have the necessary payment methods activated in your HitPay account.
- Make sure the payment methods you want to offer are enabled in your WooCommerce sales channel.
Integration Guide
Install HitPay WooCommerce Plugin
Search for HitPay in the plugin search field from your WordPress admin dashboard and install the plugin.
If you’d prefer to manually upload the plugin, you can download the zip from GitHub Releases.
Activate the Plugin
Once installed, click on Activate Plugin.
Open HitPay Settings
Go to WooCommerce > Settings > Payments and click Manage next to HitPay.
Copy Your API Keys and Salt
You can find your API credentials in the HitPay dashboard under API Keys.
Copy both the API Key and Salt and paste them into the appropriate fields in your WooCommerce plugin settings.
Enable Live Mode only if you are using production API keys and Salt.
If you’re testing, uncheck Live Mode and use the sandbox credentials from HitPay Sandbox dashboard.
Test the Connection
Click Test Connection to verify that your credentials are correct.
If successful, you’ll see a confirmation. If it fails, click View Details to understand the issue.
Save Settings
Once the test passes, click Save Changes to apply your configuration.
That’s it! You’re all set up with HitPay on WooCommerce. 🎉
Refunds
Refunds are fully integrated into the WooCommerce dashboard, so you can directly proceed to refund an order from the WooCommerce dashboard, and it will automatically refund the payment back to the customer.
Refunds will only be successful if they meet the criteria of the payment method used. Click Here for more details. If the refund fails, please try to refund directly from the Hitpay dashboard under “Transactions > Select > Refund” to know the exact error.
If you initiate a refund from the Hitpay dashboard, your WooCommerce order will not be refunded. You need to manually update your order in WooCommerce.
Steps to refund from WooCommerce Admin Dashboard:
- Log in to the Admin panel.
- Navigate to WooCommerce by clicking on “WooCommerce” in the menu.
- Select “Orders” from the WooCommerce menu.
- Find the order you want to process a refund for and click on the “View” icon or the row associated with that order. This action will take you to the Admin Order Details page.
- Scroll down on the Admin Order Details page to locate the “Refund” button. It should be displayed on the page.
- If the order was paid using the ‘HitPay Payment Gateway,’ WooCommerce will, by default, display a button that says ‘Refund xx via HitPay Payment Gateway’ on the screen.
- If the payment gateway accepts the refund request, the refund details will be automatically added to the order’s history.
- Please note that only one refund is allowed per transaction.
Support for Drop-In UI
This plugin supports Drop-In UI. Drop-In allows your customers to complete the payment without a redirect; it is embedded into your webpage, so your customers will never have to leave your site. This is recommended if you have payment methods like Cards and Native QR Code payments (e.g., PayNow).