Plugin Settings

Configure API key, Fin staging mode, and webhook URL for DigetPay WooCommerce.

Step 3 — Add API keys

  1. Go to WooCommerce → Settings → Payments → DigetPay.
  2. Check Enable DigetPay hosted checkout.
  3. Optional: change the Title and Description customers see at checkout.
  4. Paste your Test API Key into Test API key, from API Credentials.
  5. When you are approved for Live Mode, paste your Live API Key into Live API key.
  6. Under Environment, keep Enable TEST mode checked for testing. Uncheck it only when you are ready for live transactions.
  7. Optional: check Debug log while testing.
  8. Click Save changes.
DigetPay WooCommerce settings page
SettingDescriptionDefault
Enable DigetPayShows DigetPay at checkout.Off
TitlePayment method name the customer sees.DigetPay
DescriptionText shown under the payment method at checkout.Pay with card or Apple Pay on the secure DigetPay page.
EnvironmentEnable TEST mode. Checked uses the Test API key. Unchecked uses the Live API key.Checked (Test)
Test API keyUsed only for Test orders.Empty
Live API keyUsed only when Test mode is unchecked. Live payments charge real customers.Empty
Debug logWrites diagnostics to WooCommerce → Status → Logs (source digetpay). The API key is not logged.Off
ModeWhen to use
Test mode checkedTesting with your Test API Key — Testing Guide
Test mode uncheckedLive transactions with your Live API Key — Go-Live Checklist

Both modes use the same API base URL, https://api.digetpay.com/v1. You do not enter a URL in the plugin. The key decides the mode.

❗️

Never paste a Live API Key into the Test API key field, or a Test API Key into the Live API key field.

🚧

DigetPay is hidden at checkout if the key for the selected mode is empty, or if the store currency is not SAR.

📘

Each order saves the mode it was created in. Status checks and refunds for that order always use the matching key, even if you change the Environment setting later.


Step 4 — Register webhooks

The Webhook URL section at the bottom of the settings page shows two URLs, one for each mode:

TEST: https://your-store.com/?wc-api=digetpay_webhook&environment=test
LIVE: https://your-store.com/?wc-api=digetpay_webhook&environment=live
  1. Copy the TEST URL.
  2. In the DigetPay Merchant Dashboard, open the Test webhook configuration, paste the URL and save.
  3. Before going live, copy the LIVE URL and register it in the Live webhook configuration.
❗️

Register each URL only in its matching mode. The plugin ignores webhooks whose environment does not match the order's mode, and webhooks sent to the old ?wc-api=digetpay_callback URL. Use a public HTTPS hostname; do not register localhost.

📘

The plugin treats each webhook as a notification only. It confirms the payment with the Transaction Status API before updating the order. If the customer closes the browser before returning to your store, the webhook is what triggers this check, so without it the order can stay Pending payment.


Next: Testing & troubleshooting →


Did this page help you?