PrestaShop
Official dpay.pl payment module for PrestaShop 1.7 and 8.x. Enables accepting online payments in your PrestaShop store. The module supports online refunds, BLIK Level 0, Apple Pay, Google Pay, and an inline card form.
Requirements
- PrestaShop 1.7.6 or newer (including PrestaShop 8.x)
- 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
Installation
Method 1 - from the admin panel (recommended)
- Download the latest module version from dpay.pl or from GitHub in
.zipformat. - Navigate to Modules > Module Manager in the PrestaShop admin panel.
- Click Upload a module and select the downloaded
.zipfile. - After the installation completes, the module will appear on the list as dPay Payment Gateway.
Method 2 - manual installation
- Download and extract the module archive.
- Copy the
dpaypaymentdirectory to themodules/folder in the PrestaShop root directory. - Navigate to Modules > Module Manager.
- Search for dPay Payment Gateway and click Install.
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/module/dpaypayment/callback
Important
The secret hash should be treated like a password. Never share it publicly or include it in frontend code.
Step 2 - Module configuration in PrestaShop
- Navigate to Modules > Module Manager.
- Find dPay Payment Gateway and click Configure.
- Fill in the configuration form:
| Field | Description |
|---|---|
| Service 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 |
| Hide Bank List | Hide the bank list on the dpay.pl payment page |
| BLIK Zero | Enable entering the BLIK code directly in the checkout |
| Apple Pay | Enable Apple Pay payments |
| Google Pay | Enable Google Pay payments |
| Credit card (dPay) | Enable the inline card form in the checkout |
- Click Save.
Step 3 - Verification
- Place a test order in your store.
- Select Pay with dPay 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 PrestaShop has changed to Payment accepted.
Refunds
The module supports online refunds from the PrestaShop admin panel:
- Go to the order in Orders > Orders.
- Click Partial refund or Standard refund.
- Enter the refund amount and confirm the operation.
The refund (full or partial) will be automatically sent to dpay.pl. Refund information will be added as a note to the order.
Status mapping
| dpay.pl status | PrestaShop status |
|---|---|
new | Awaiting payment |
completed | Payment accepted |
rejected | Cancelled |
Troubleshooting
Orders do not change status automatically
- Verify that the IPN URL (
https://your-store.com/module/dpaypayment/callback) is correctly set in the dpay.pl Dashboard. - Make sure the endpoint is publicly accessible and not blocked by a firewall.
- Check PrestaShop logs in the
var/logs/directory.
"Service name and hash key must be configured" error
- Go to the module configuration and make sure the Service Name and Hash Key fields are filled in.
- Check for any extra spaces before or after the values.
Payment method does not appear in the checkout
- Make sure the module is active in Modules > Module Manager.
- Verify that the order currency is PLN - the module only supports this currency.
- Go to Payment > Preferences and check whether the dpaypayment module is enabled for the appropriate currencies.
Error during refund
- Verify that a dpay.pl transaction exists for this order.
- Check the logs in
var/logs/for messages with the dPay refund error prefix.