CS Cart Overview
Connect your CS-Cart store to DigetPay Hosted Checkout — install the add-on, configure payments, and accept supported card and wallet methods.
Connect CS-Cart to DigetPay Hosted Checkout. Customers pay on DigetPay's secure hosted page, while payment notifications allow your store to synchronize order status automatically.
HTTPS required. Use a publicly accessible HTTPS store and webhook URL for live payments. DigetPay cannot deliver webhooks to
localhostor a private network address.
Why use the CS-Cart plugin?
| Benefit | Details |
|---|---|
| Secure payments | Hosted Checkout — customers enter card information on DigetPay, not on your CS-Cart server. |
| Automatic order updates | Incoming payment webhooks trigger verification and CS-Cart order status updates. |
| Easy installation | Install the DigetPay add-on from the CS-Cart Admin panel; no custom integration code is required. |
| Separate environments | Configure separate Test and Live API keys in the same add-on. |
Supported features
- Hosted Checkout with automatic customer redirect
- Card payments, Mada, and Apple Pay, depending on the payment methods enabled for your merchant account
- Separate Test and Live API key settings
- Payment verification triggered by webhook notifications
- Configurable Paid order status in CS-Cart
- Optional debug logging for troubleshooting
- HTTPS callback configuration for local development using a public tunnel
Refunds: This add-on does not provide an automatic online refund action in the CS-Cart Admin panel. Handle refunds through an authorized DigetPay workflow, then reconcile the order separately.
Requirements
| Requirement | Version / Details |
|---|---|
| Platform | CS-Cart Store Builder; integration verified during setup on 4.21.2 |
| Server | PHP and database environment compatible with your CS-Cart installation; PHP 8.2 used in the reference setup |
| Store | Publicly accessible HTTPS URL for customer returns and webhooks |
| Currency | SAR must be configured as the CS-Cart primary currency |
| DigetPay account | Active merchant account and its Test or Live API key from the DigetPay Dashboard |
| Installation access | CS-Cart administrator with permission to manage add-ons and payment methods |
How it works
flowchart LR
A[Customer checkout] --> B[CS-Cart creates payment session]
B --> C[DigetPay Hosted Checkout]
C --> D[Customer completes payment]
D --> E[DigetPay sends webhook]
E --> F[Plugin verifies session status]
F --> G[CS-Cart updates order]
| Step | Who | What happens |
|---|---|---|
| 1 | Customer | Selects DigetPay during CS-Cart checkout |
| 2 | Plugin | Creates a DigetPay payment session using POST /payment/checkout/intiate |
| 3 | Customer | Is redirected to DigetPay Hosted Checkout to complete payment |
| 4 | DigetPay | Sends a POST payment notification to the registered CS-Cart webhook URL |
| 5 | Plugin | Checks the stored session through GET /payment/checkout/status?sessionId=.... |
| 6 | CS-Cart | Changes the order to the configured Paid status only when payment success is verified |
Webhook required. Customer return links (
successUrlandfailureUrl) are used for navigation only. They do not confirm payment. If no valid webhook is delivered, an order may remain Incomplete even when the payment succeeded on DigetPay.
Billing phone required. A valid customer phone number must be supplied at checkout. The plugin sends it as
customerPhonewhen creating the payment session.
Setup guides
- Plugin Installation — Download the add-on ZIP, install it in CS-Cart, and activate the payment method
- Plugin Settings — Configure Test/Live keys, paid order status, HTTPS callbacks, and webhook notifications
- Testing & Troubleshooting — Verify the checkout flow, test webhook updates, and resolve common issues
Related docs
Updated about 2 months ago

