WooCommerce
Official dpay.pl plugin for WooCommerce. Enables accepting online payments in your WordPress + WooCommerce store without writing any code. Supports WooCommerce Blocks.
Requirements
- WordPress 6.0 or newer
- WooCommerce 8.0 or newer (including WooCommerce 10)
- PHP 7.4 or newer
- Active account in the dpay.pl Dashboard with a configured Payment Point
Supported payment methods
- BLIK (including BLIK Level 0 - inline)
- Bank transfers (pay-by-link)
- Credit cards (inline)
- Google Pay and Apple Pay
- PayPal
- Paysafecard
- Installments (BLIK BNPL)
Installation
Method 1 - from the WordPress repository (recommended)
- Navigate to Plugins > Add New in the WordPress admin panel.
- Search for dpay.pl in the plugin search.
- Click Install, then Activate.
Method 2 - manual installation from a ZIP file
- Download the latest plugin version from dpay.pl or from GitHub.
- Navigate to Plugins > Add New > Upload Plugin.
- Select the downloaded
.zipfile and click Install. - After the installation completes, click Activate Plugin.
Configuration
Step 1 - Prepare credentials in the dpay.pl Dashboard
- Log in to the dpay.pl Dashboard.
- Go to the Payment Points section.
- Create a new Payment Point or select an existing one.
- Take note of:
- Service name (
service_name) - unique name of your Payment Point - Secret hash (
secret_hash) - key used for signing requests
- Service name (
- In the Payment Point settings, set the IPN URL to:
https://your-store.com/?wc-api=dpay_ipn
Important
The secret hash should be treated like a password. Never share it publicly or include it in frontend code.
Step 2 - Plugin configuration in WordPress
- Navigate to WooCommerce > Settings > Payments.
- Find dpay.pl on the list and click Manage.
- Fill in the configuration form:
| Field | Description |
|---|---|
| Enable/Disable | Check to activate the payment gateway |
| Title | Payment method name visible to the customer (e.g., Online payment - dpay.pl) |
| Description | Description displayed on the order page |
| Service name | Service name from the dpay.pl Dashboard |
| Secret hash | Secret hash from the dpay.pl Dashboard |
| Test mode | Enable to use the sandbox environment |
- Click Save changes.
Step 3 - Verification
- Place a test order in your store.
- Select dpay.pl as the payment method.
- Verify that you are correctly redirected to the payment page.
- After completing the payment, check whether the order status in WooCommerce has changed to Paid.
Refunds
The plugin supports online refunds directly from the WooCommerce admin panel:
- Go to the order in WooCommerce > Orders.
- Click Refund.
- Enter the refund amount and confirm.
The refund will be automatically sent to dpay.pl.
Status mapping
| dpay.pl status | WooCommerce status |
|---|---|
new | Pending |
completed | Paid |
rejected | Cancelled |
Troubleshooting
Orders do not change status automatically
- Verify that the IPN URL is correctly set in the dpay.pl Dashboard.
- Make sure the IPN URL is publicly accessible (not blocked by a firewall).
- Check WooCommerce logs: WooCommerce > Status > Logs.
"Invalid checksum" error
- Make sure the Secret hash in the plugin settings matches the hash in the dpay.pl Dashboard.
- Check for any extra spaces before or after the hash value.
Redirect is not working
- Make sure the plugin is enabled in WooCommerce > Settings > Payments.
- Verify that the Service name is correct.