Plugin Settings
Configure API key, Fin staging mode, and webhook URL for DigetPay WooCommerce.
Step 3 — Add API keys
- Go to WooCommerce → Settings → Payments → DigetPay.
- Check Enable DigetPay hosted checkout.
- Optional: change the Title and Description customers see at checkout.
- Paste your Test API Key into Test API key, from API Credentials.
- When you are approved for Live Mode, paste your Live API Key into Live API key.
- Under Environment, keep Enable TEST mode checked for testing. Uncheck it only when you are ready for live transactions.
- Optional: check Debug log while testing.
- Click Save changes.
| Setting | Description | Default |
|---|---|---|
| Enable DigetPay | Shows DigetPay at checkout. | Off |
| Title | Payment method name the customer sees. | DigetPay |
| Description | Text shown under the payment method at checkout. | Pay with card or Apple Pay on the secure DigetPay page. |
| Environment | Enable TEST mode. Checked uses the Test API key. Unchecked uses the Live API key. | Checked (Test) |
| Test API key | Used only for Test orders. | Empty |
| Live API key | Used only when Test mode is unchecked. Live payments charge real customers. | Empty |
| Debug log | Writes diagnostics to WooCommerce → Status → Logs (source digetpay). The API key is not logged. | Off |
| Mode | When to use |
|---|---|
| Test mode checked | Testing with your Test API Key — Testing Guide |
| Test mode unchecked | Live 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- Copy the TEST URL.
- In the DigetPay Merchant Dashboard, open the Test webhook configuration, paste the URL and save.
- 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
environmentdoes not match the order's mode, and webhooks sent to the old?wc-api=digetpay_callbackURL. Use a public HTTPS hostname; do not registerlocalhost.
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.
Updated about 2 months ago

