Extension Configuration
Configure the DigetPay payment extension for OpenCart 3.x or 4.x, including API credentials, environment, order status mapping, webhook, and checkout display settings.
API credentials
- Open Extensions → Extensions → Payments → DigetPay → Edit.
- Set Status to Enabled.
- Set Environment:
- Test (api.digetpay.com) for testing
- Live (api.digetpay.com) for real payments
- Paste your Test API Key and, when you are approved for Live Mode, your Live API Key, from API Credentials.
- Leave Public HTTPS Store URL (3.x) / Public HTTPS URL (4.x) empty for a store that is already deployed on HTTPS. Fill it in only when the store's own URL is not public HTTPS (for example, a tunnel used for local QA). Enter the base URL only, with no path or query.
- Click Save (top-right).
Both environments use the same API base URL,
https://api.digetpay.com/v1. The Environment setting decides which key is used. The extension will not save as enabled without the key for the selected environment.
OpenCart 3.x
OpenCart 4.x
| Environment | When to use |
|---|---|
| Test (api.digetpay.com) | Testing with your Test API Key — Testing Guide |
| Live (api.digetpay.com) | Real payments with your Live API Key — Go-Live Checklist |
Never paste a Live API Key into the Test API Key field, or a Test API Key into the Live API Key field.
Each order saves the environment it was created in. Status checks and refunds for that order always use the matching key, even if you change Environment later.
Order status mapping
Map DigetPay payment outcomes to OpenCart order statuses:
| Event | Setting (3.x / 4.x) | Default (3.x / 4.x) | Recommended status |
|---|---|---|---|
| Payment confirmed | Paid order status | Complete / Processing | Processing or Complete |
| Payment failed | Failed order status | Failed / Failed | Failed |
| Full refund confirmed | Fully Refunded Order Status / Full refund order status | — / Refunded (created automatically) | Refunded |
| Partial refund confirmed | Partially Refunded Order Status / Partial refund order status | — / Partially Refunded (created automatically) | Partially Refunded |
- OpenCart 3.x: Create a Partially Refunded status in System → Localisation → Order Statuses if it does not exist, then select it.
- OpenCart 4.x: Saving the settings creates the Refunded and Partially Refunded statuses if they are missing.
- Refund statuses change only after DigetPay confirms the refund.
Do not use the same status for different outcomes. For example, do not set both Paid and Failed to Canceled, or use Refunded for partial refunds.
Save after each change.
Refunds (OpenCart 3.x only)
| Setting | Description |
|---|---|
| Enable Admin Refunds | Disabled by default. Turn it on to submit refunds from the DigetPay Refund Manager. An accepted refund may still be pending verification. |
| Manage Order Refund | Enter the OpenCart order ID and click Open Refund Manager. Only verified DigetPay payments are eligible. |
On OpenCart 4.x there is no on/off setting. Refunds are made from the order page. See Refunds, testing & troubleshooting.
Webhook URL
Copy the webhook URL shown in the extension settings and register it in the DigetPay dashboard. Register the same URL in both the Test and Live webhook configurations. The extension reads the environment from the saved order, so no environment parameter is needed.
OpenCart 3.x
Field: Webhook URL
https://your-store.com/index.php?route=extension/payment/digetpay/webhookOpenCart 4.x
Fields: Sandbox webhook URL and Production webhook URL (both show the same URL)
https://your-store.com/index.php?route=extension/digetpay/payment/digetpay.webhookRequired. The URL must start with
https://on a public domain. If it showshttp://orlocalhost, set your store to HTTPS or fill in Public HTTPS URL, save, and copy the URL again. Without the webhook, an order can stay pending if the customer closes the browser before returning to your store.
The extension treats each webhook as a notification only. It confirms the payment with the Transaction Status API before updating the order.
Debug log
| Setting | Description |
|---|---|
| Debug log | Writes diagnostics to the digetpay.log file. The API key is not logged. Turn it on while testing. |
Checkout display
| Setting | Recommendation |
|---|---|
| Status | Enabled so Pay with DigetPay appears at checkout |
| Sort order | Position DigetPay where customers expect online payment |
DigetPay appears at checkout only when the checkout currency is SAR and the API key for the selected environment is filled in.
Updated about 2 months ago

