Plugin Settings
Configure your DigetPay API keys, payment environment, webhook URL, and order status for CS-Cart.
Step 5 — Add your API keys
- Go to Add-ons → Downloaded add-ons → DigetPay.
- Confirm that the add-on status is ON.
- Select Test mode and enter the matching Test API key, or disable it to use your Live API key.
- Choose the order status to use after a verified successful payment.
- Click Save.
Get your keys from your DigetPay Dashboard under Settings → API Credentials.
Configuration Settings
| Setting | Description |
|---|---|
| Test mode | Checked: use Test API key. Unchecked: use Live API key. |
| Test API key | Merchant API key for test transactions. |
| Live API key | Merchant API key for production transactions. |
| Public HTTPS callback origin | Optional HTTPS origin for stores accessed locally or through a reverse proxy; see below. |
| Paid order status | CS-Cart status applied after the webhook triggers verification of a successful payment. |
| Debug log | Writes plugin diagnostics to var/digetpay.log when enabled and events are logged. |
| Webhook URL | Read-only URL generated by the plugin; copy it into the merchant dashboard. |
Test and Live environments
| Mode | API key used | API base URL |
|---|---|---|
| Test mode ON | Test API key | https://api.digetpay.com/v1 |
| Test mode OFF | Live API key | https://api.digetpay.com/v1 |
Separate keys, same endpoint. Test and Live transactions use the same API base URL. Only the API key changes. Do not use a Test key for Live payments or vice versa.
Step 6 — Register webhook
- On the DigetPay add-on settings page, locate and copy the Webhook URL displayed at the bottom.
- Sign in to your DigetPay Merchant Dashboard.
- Open the webhook configuration for the corresponding Test or Live environment.
- Paste the URL and save it.
- Make sure your server allows HTTPS POST requests to this endpoint.
Example webhook URL:
https://your-store.com/index.php?dispatch=payment_notification.webhook&payment=digetpay
Webhook is required for order confirmation. DigetPay payment success alone does not update CS-Cart. The plugin updates the order only after its webhook endpoint receives a notification and verifies the saved session through DigetPay's Status API.
Public HTTPS callback origin (optional)
If your CS-Cart store runs on a private address (for example http://localhost:8083 during local development), a public HTTPS URL is required for DigetPay to reach the callback and webhook endpoints.
Enter only the origin, not the full webhook path:
https://your-public-domain.com
The plugin appends the appropriate callback path. Leave this field empty on a correctly configured public HTTPS store.
This setting does not change the CS-Cart storefront or Admin base URL. Configure your HTTPS redirects correctly so a customer returning from DigetPay is not redirected to
https://localhostor another inaccessible address.
Order status and payment confirmation
| Event | CS-Cart result |
|---|---|
| Customer leaves for Hosted Checkout | Order remains unconfirmed until payment is verified. |
| Customer returns through successUrl | Return only; no payment-state change. |
| Webhook + verified success | Order changes to the selected Paid order status. |
| Webhook + verified failure | Order changes to Failed. |
| Webhook + pending or unavailable status | Order remains unconfirmed. |
Payment verification
The plugin verifies the stored checkout session through:
GET https://api.digetpay.com/v1/payment/checkout/status?sessionId={sessionId}
x-api-key: YOUR_MERCHANT_API_KEY
Important: Never treat an unverified webhook body or customer redirect as proof of payment.
Updated about 2 months ago

