Testing & Troubleshooting
Test DigetPay payments in CS-Cart, verify order synchronization, and resolve common checkout issues.
Test payment
-
Confirm DigetPay is active in Settings → Payment methods.
-
Select Test mode and enter an active DigetPay Test API key in Add-ons → Downloaded add-ons → DigetPay.
-
Ensure the store's primary currency is SAR and the checkout collects a valid billing phone.
-
Add a product to your cart, proceed to checkout, and choose DigetPay.
-
Place the order. The plugin creates a payment session and redirects you to DigetPay Hosted Checkout.
-
Complete payment using a supported Test Card.
-
Verify the amount and transaction result in the DigetPay merchant dashboard.
-
Check delivery of the matching webhook and verify the CS-Cart order status after its status verification finishes.
Success: A successfully verified webhook updates the CS-Cart order to the Paid order status selected in the plugin settings. The customer being shown a success page does not, by itself, change the order status.
Test webhook delivery: Where DigetPay Test-key webhook delivery is not enabled, the payment may succeed on DigetPay while the CS-Cart order remains Incomplete. Confirm webhook support for your environment with DigetPay. Do not manually mark orders as paid without an independent status check.
Go live
- Verify your merchant's Live API key is active.
- Open Add-ons → Downloaded add-ons → DigetPay.
- Paste the Live API key and disable Test mode.
- Make sure your live storefront, success/failure callbacks, and webhook URL all use a public HTTPS domain.
- Register the plugin's webhook URL in the Live webhook configuration of the DigetPay merchant dashboard.
- Confirm the store's primary currency is SAR and the chosen Paid order status is correct.
- Complete a controlled live payment and verify both DigetPay's status and the CS-Cart order update.
- Turn Debug log off after successful troubleshooting unless support asks you to enable it.
Quick fixes
| Problem | Recommended fix |
|---|---|
| Invalid or inactive merchant API key | Check whether Test mode is enabled; enter the matching valid key and save. Both modes use https://api.digetpay.com/v1. |
| DigetPay missing from checkout | Activate the add-on and verify Settings → Payment methods → DigetPay is active and available to customers. |
| SAR currency required | Set SAR as the primary currency, not just the display currency; verify the final amount with shipping and discounts. |
| Customer phone number required | Collect a valid customer phone number in CS-Cart billing/checkout details. |
| Payment succeeds but order remains Incomplete | Check whether a webhook POST arrived and whether its session was verified by DigetPay Status API. |
| Webhook not received | Register the correct Test/Live URL, use public HTTPS, and check firewalls, redirects, tunnel availability, and DigetPay delivery support. |
| Webhook returns 200 but order is not Paid | HTTP 200 only confirms a response. Check the stored session/order match and the verified payment status; Pending is not Paid. |
| Return page shows an SSL error | Ensure the store's HTTPS base URL and redirects point to a valid public domain, not https://localhost. |
| Debug log file not found | Enable Debug log, trigger a relevant event, and ensure CS-Cart can write to var/. The file is created when a log entry is written. |
| Refund not available in CS-Cart | Automatic online refund is not included in this CS-Cart add-on. Use the authorized DigetPay refund workflow and reconcile separately. |
Need help? Contact your DigetPay technical integration team or DigetPay Support.
Developer reference
| Item | Value |
|---|---|
| Add-on ID / payment processor script | digetpay / digetpay.php |
| API base URL (Test and Live) | https://api.digetpay.com/v1 |
| Create checkout | POST /payment/checkout/intiate |
| Verify session | GET /payment/checkout/status?sessionId={sessionId} |
| Webhook method | POST |
| Webhook route | index.php?dispatch=payment_notification.webhook&payment=digetpay |
| Customer return routes | payment_notification.success / payment_notification.failure |
| Authentication | Header x-api-key |
| Debug file | var/digetpay.log |
| Refund capability in add-on | No automatic CS-Cart refund action |
Full API docs: Hosted Checkout · Webhook Configuration · API Credentials
Updated about 2 months ago

