OpenCart
Official dpay.pl payment extension for OpenCart 4.x. Delivered in OCMOD format, it enables online payment acceptance in your OpenCart store. Supports BLIK Level 0, Apple Pay, Google Pay, inline card form, and refunds from the admin panel.
Requirements
- OpenCart 4.x
- PHP 8.0 or newer
- An 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/debit cards (inline)
- Google Pay and Apple Pay
- PayPal
- Paysafecard
- Installments
Installation
Method 1 - From the admin panel (recommended)
- Download the latest extension version from dpay.pl or GitHub in
.ocmod.zipformat. - Go to Extensions > Installer in the OpenCart admin panel.
- Click Upload and select the downloaded file.
- After installation is complete, go to Extensions > Extensions > Payments.
- Find dpay.pl - Payment Gateway and click Install (green + button).
Method 2 - Manual installation
- Download and extract the extension archive.
- Copy the contents of the
admin/,catalog/, andsystem/directories to the corresponding directories in your OpenCart installation. - Copy the
dpay.ocmod.xmlfile to the OpenCart root directory. - Go to Extensions > Extensions > Payments and install dpay.pl - Payment Gateway.
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.
- Note down:
- Service name (
service_name) - the unique name of your Payment Point - Secret hash (
secret_hash) - the key used to sign requests
- Service name (
- In the Payment Point settings, set the IPN URL to:
https://your-store.com/index.php?route=extension/dpay/payment/dpay|callback
Important
The secret hash should be treated like a password. Never share it publicly or include it in frontend code.
Step 2 - Configure the extension in OpenCart
- Go to Extensions > Extensions > Payments.
- Find dpay.pl - Payment Gateway and click Edit (blue pencil button).
- 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 |
| Disable Bank Transfers | Disable bank transfers and pay-by-link |
| BLIK Zero | Enable entering a BLIK code directly in the checkout |
| Apple Pay | Enable Apple Pay payments |
| Google Pay | Enable Google Pay payments |
| Inline Card Form | Enable the inline card form in the checkout |
| Order Status | Order status after a successful payment |
| Failed Status | Order status after a failed payment |
| Status | Enable/disable the extension |
| Geo Zone | Restrict availability to a specific geographic zone |
| Sort Order | Display order for the payment method |
- Click Save (floppy disk icon in the top right corner).
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, verify that the order status in OpenCart has changed according to the settings.
Refunds
The extension supports online refunds from the OpenCart admin panel:
- Go to the order in Sales > Orders.
- In the order details, find the dpay.pl section.
- Click Refund and enter the amount (optional - an empty field means a full refund).
- Confirm the operation.
The refund (full or partial) will be automatically sent to dpay.pl.
Status Mapping
| dpay.pl Status | OpenCart Status |
|---|---|
new | Pending |
completed | Complete (configurable) |
rejected | Failed (configurable) |
Troubleshooting
Orders do not change status automatically
- Verify that the IPN URL is correctly configured in the dpay.pl Dashboard.
- Make sure the endpoint is publicly accessible and not blocked by a firewall or
.htaccessrules. - Check the OpenCart logs in the
system/storage/logs/directory.
Extension does not appear in the payment list
- Make sure the
dpay.ocmod.xmlfile is properly installed. - Go to Extensions > Installer and verify that the extension is on the installed list.
- Clear the cache: Dashboard > blue circle button (refresh modifications).
Permission error
- Go to System > Users > User Groups and add access and modify permissions for
extension/dpay/payment/dpay.
Payment method does not appear in the checkout
- Verify that the extension is enabled (the Status field is set to Enabled).
- Make sure the availability is not restricted to a geographic zone that does not include the customer.