Shopware 6
Official dpay.pl payment plugin for Shopware 6. Enables accepting online payments in your Shopware store. The plugin registers two payment methods - standard dpay.pl and BLIK - and supports per-sales-channel configuration.
Requirements
- Shopware 6.5 or 6.6
- PHP 8.1 or newer
- Active account in the dpay.pl Dashboard with a configured Payment Point
Supported payment methods
- BLIK (including BLIK Level 0 - inline, registered as a separate payment method)
- Bank transfers (pay-by-link)
- Credit cards (inline)
- Google Pay and Apple Pay
- PayPal
- Paysafecard
- Installments
Installation
Method 1 - Composer (recommended)
- In the Shopware root directory, run:
composer require dpay/shopware-payment - Refresh the plugin list and install:
bin/console plugin:refresh
bin/console plugin:install --activate DPayShopwarePayment
bin/console cache:clear
Method 2 - manual installation
- Download the latest plugin version from dpay.pl or from GitHub.
- Extract the archive to the
custom/plugins/DPayShopwarePayment/directory. - Refresh the plugin list and install:
bin/console plugin:refresh
bin/console plugin:install --activate DPayShopwarePayment
bin/console cache:clear
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/dpay/webhook
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 Shopware
- Navigate to Extensions > My extensions in the admin panel.
- Find dPay.pl Payment Plugin and click Configure.
- Fill in the configuration form:
| Field | Description |
|---|---|
| Payment Point name | Service name from the dpay.pl Dashboard |
| HASH key | Secret hash from the dpay.pl Dashboard |
| Enable PayPal | Enable PayPal payments |
| Enable credit card | Enable credit card payments |
| Enable Paysafecard | Enable Paysafecard payments |
| Enable installments | Enable installment payments |
| Disable bank transfers | Disable bank transfers and pay-by-link |
| Enable BLIK Zero (inline code) | Enable entering the BLIK code directly in the checkout |
| Enable Apple Pay | Enable Apple Pay payments |
| Enable Google Pay | Enable Google Pay payments |
| Enable inline card form | Enable the inline credit card form in the checkout |
- Click Save.
- Navigate to Settings > Shop > Payment methods and activate the dPay.pl and dPay.pl BLIK methods for the desired sales channels.
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 dpay.pl payment page.
- After completing the payment, check whether the order status in Shopware has changed to Paid.
Refunds
Refunds are processed through dpay.pl after a refund request is submitted in the Shopware admin panel. To issue a refund:
- Go to the order in Orders > Overview.
- Change the payment status to Refunded or Partially refunded.
- The refund will be automatically sent to dpay.pl.
Status mapping
| dpay.pl status | Shopware status |
|---|---|
new | Pending (Open) |
completed | Paid |
rejected | Cancelled |
Troubleshooting
Orders do not change status automatically
- Verify that the IPN URL (
https://your-store.com/dpay/webhook) is correctly set in the dpay.pl Dashboard. - Make sure the webhook endpoint is publicly accessible.
- Check Shopware logs in
var/log/- look for entries with the[dPay]prefix.
Payment methods do not appear in the checkout
- Navigate to Settings > Shop > Payment methods and verify that the dpay.pl methods are active.
- Make sure the payment methods are assigned to the appropriate sales channel.
- Verify that the channel currency is PLN.
Configuration error
- Make sure the Payment Point name and HASH key fields are correctly filled in.
- After changing the configuration, clear the cache:
bin/console cache:clear.
Plugin does not install
- Verify that the Shopware version is 6.5 or 6.6.
- Make sure PHP version is 8.1 or newer.
- Run
bin/console plugin:refreshbefore installation.