Testing & Troubleshooting

Test DigetPay payments in CS-Cart, verify order synchronization, and resolve common checkout issues.

Test payment

  1. Confirm DigetPay is active in Settings → Payment methods.

  2. Select Test mode and enter an active DigetPay Test API key in Add-ons → Downloaded add-ons → DigetPay.

  3. Ensure the store's primary currency is SAR and the checkout collects a valid billing phone.

  4. Add a product to your cart, proceed to checkout, and choose DigetPay.

  5. Place the order. The plugin creates a payment session and redirects you to DigetPay Hosted Checkout.

  6. Complete payment using a supported Test Card.

  7. Verify the amount and transaction result in the DigetPay merchant dashboard.

  8. 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

  1. Verify your merchant's Live API key is active.
  2. Open Add-ons → Downloaded add-ons → DigetPay.
  3. Paste the Live API key and disable Test mode.
  4. Make sure your live storefront, success/failure callbacks, and webhook URL all use a public HTTPS domain.
  5. Register the plugin's webhook URL in the Live webhook configuration of the DigetPay merchant dashboard.
  6. Confirm the store's primary currency is SAR and the chosen Paid order status is correct.
  7. Complete a controlled live payment and verify both DigetPay's status and the CS-Cart order update.
  8. Turn Debug log off after successful troubleshooting unless support asks you to enable it.

Go-Live Checklist →

Quick fixes

ProblemRecommended fix
Invalid or inactive merchant API keyCheck whether Test mode is enabled; enter the matching valid key and save. Both modes use https://api.digetpay.com/v1.
DigetPay missing from checkoutActivate the add-on and verify Settings → Payment methods → DigetPay is active and available to customers.
SAR currency requiredSet SAR as the primary currency, not just the display currency; verify the final amount with shipping and discounts.
Customer phone number requiredCollect a valid customer phone number in CS-Cart billing/checkout details.
Payment succeeds but order remains IncompleteCheck whether a webhook POST arrived and whether its session was verified by DigetPay Status API.
Webhook not receivedRegister 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 PaidHTTP 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 errorEnsure the store's HTTPS base URL and redirects point to a valid public domain, not https://localhost.
Debug log file not foundEnable 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-CartAutomatic 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

ItemValue
Add-on ID / payment processor scriptdigetpay / digetpay.php
API base URL (Test and Live)https://api.digetpay.com/v1
Create checkoutPOST /payment/checkout/intiate
Verify sessionGET /payment/checkout/status?sessionId={sessionId}
Webhook methodPOST
Webhook routeindex.php?dispatch=payment_notification.webhook&payment=digetpay
Customer return routespayment_notification.success / payment_notification.failure
AuthenticationHeader x-api-key
Debug filevar/digetpay.log
Refund capability in add-onNo automatic CS-Cart refund action

Full API docs: Hosted Checkout · Webhook Configuration · API Credentials


Did this page help you?