WooCommerce Overview

Connect WordPress WooCommerce to DigetPay Hosted Checkout — install, configure, and accept Mada, Visa, and Apple Pay.

Connect WooCommerce to DigetPay Hosted Checkout. Customers pay on DigetPay's secure hosted page, and the plugin confirms each payment with the DigetPay Transaction Status API before it updates the order.

SSL required. Your store must use a public HTTPS domain. http://, localhost, .local and private IP addresses are not supported.


Why use the WooCommerce plugin

BenefitDetails
Secure paymentsHosted checkout — card data never touches your server
Verified ordersOrders are marked paid only after the Transaction Status API confirms the payment
Simple setupInstall and configure the plugin from WordPress — no custom backend code required
Test & Live modesSeparate Test API key and Live API key fields. Test Mode is on by default

Supported features

  • Hosted Checkout with redirect
  • Mada, Visa, Mastercard, American Express, and Apple Pay (on the DigetPay hosted page)
  • Sale transactions, and full or partial refunds from the WooCommerce order screen
  • Order updates from the customer's return and from webhooks, both confirmed with the Status API
  • Test Mode and Live Mode on one API, with separate Test and Live webhook URLs
  • Each order remembers the mode it was paid in, so status checks and refunds always use the matching key
  • Classic checkout and WooCommerce Checkout Blocks
  • WooCommerce High-Performance Order Storage (HPOS)
  • Optional debug log in WooCommerce → Status → Logs (API keys are never logged)

Requirements

RequirementVersion / Details
WordPress6.0+ (tested up to 6.7)
WooCommerce7.0+ (tested up to 9.4)
PHP7.4+ with the cURL extension
Store currencySAR only
StorePublic HTTPS domain with a valid certificate
DigetPayTest API Key and Live API Key from the Merchant Dashboard
🚧

SAR only. If the store currency is not SAR, DigetPay is hidden at checkout and WordPress shows an admin notice.


How it works

flowchart LR
  A[Customer checkout] --> B[Plugin creates session]
  B --> C[DigetPay Hosted Checkout]
  C --> D[Customer pays]
  D --> E[Customer returns / webhook arrives]
  E --> F[Plugin checks Status API]
  F --> G[WooCommerce updates order]
StepWhoWhat happens
1StoreCustomer selects DigetPay at checkout
2PluginCreates a checkout session with POST /payment/checkout/intiate, using the key for the current mode
3CustomerIs redirected to DigetPay Hosted Checkout and completes payment
4CustomerReturns to the store
5DigetPaySends a webhook notification to the store's webhook URL for that mode
6PluginOn return and on webhook, checks GET /payment/checkout/status and updates the order from that result

The plugin uses the DigetPay API base URL https://api.digetpay.com/v1 in both Test Mode and Live Mode. Your API key decides the mode.

📘

Webhook = notification. The plugin never updates an order from the webhook payload. It always confirms the result with the Transaction Status API, and marks the order paid only when the payment is confirmed and a gateway transaction ID is returned.

❗️

Register a webhook for each mode. If the customer closes the browser before returning to your store, the webhook is what triggers the status check. Without it, the order can stay Pending payment. The plugin shows a separate Test and Live webhook URL; register each one in the matching webhook configuration in the Merchant Dashboard. See Plugin Settings.

❗️

Billing phone required. The WooCommerce checkout must include a valid billing phone number. The phone number is required for Apple Pay and gateway processing.


Setup guides


Related docs


Did this page help you?