Plugin Settings

Configure your DigetPay API keys, payment environment, webhook URL, and order status for CS-Cart.

Step 5 — Add your API keys

  1. Go to Add-ons → Downloaded add-ons → DigetPay.
  2. Confirm that the add-on status is ON.
  3. Select Test mode and enter the matching Test API key, or disable it to use your Live API key.
  4. Choose the order status to use after a verified successful payment.
  5. Click Save.

Get your keys from your DigetPay Dashboard under Settings → API Credentials.

Configuration Settings

SettingDescription
Test modeChecked: use Test API key. Unchecked: use Live API key.
Test API keyMerchant API key for test transactions.
Live API keyMerchant API key for production transactions.
Public HTTPS callback originOptional HTTPS origin for stores accessed locally or through a reverse proxy; see below.
Paid order statusCS-Cart status applied after the webhook triggers verification of a successful payment.
Debug logWrites plugin diagnostics to var/digetpay.log when enabled and events are logged.
Webhook URLRead-only URL generated by the plugin; copy it into the merchant dashboard.

Test and Live environments

ModeAPI key usedAPI base URL
Test mode ONTest API keyhttps://api.digetpay.com/v1
Test mode OFFLive API keyhttps://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

  1. On the DigetPay add-on settings page, locate and copy the Webhook URL displayed at the bottom.
  2. Sign in to your DigetPay Merchant Dashboard.
  3. Open the webhook configuration for the corresponding Test or Live environment.
  4. Paste the URL and save it.
  5. 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://localhost or another inaccessible address.

Order status and payment confirmation

EventCS-Cart result
Customer leaves for Hosted CheckoutOrder remains unconfirmed until payment is verified.
Customer returns through successUrlReturn only; no payment-state change.
Webhook + verified successOrder changes to the selected Paid order status.
Webhook + verified failureOrder changes to Failed.
Webhook + pending or unavailable statusOrder 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.


Next: Testing & Troubleshooting →


Did this page help you?