FAQs
Find quick answers to the most common questions about integrating with DigetPay, including account setup, API authentication, payment processing, refunds, webhooks, and going live. This section helps merchants and developers resolve common issues without needing direct support.
Account & credentials
How do I get my API credentials?
Complete the Business Onboarding process, then sign in to the Merchant Dashboard at pay.digetpay.com. Your Test API Key is available under Settings → API Credentials. Your Live API Key is used when you go live. See Authentication & Credentials.
What's the difference between Test Mode and Live Mode?
DigetPay uses one API base URL and one Merchant Dashboard for both modes.
Both modes
• API Base URL: https://api.digetpay.com/v1
• Merchant Dashboard: https://pay.digetpay.com
What differs
• Test Mode uses your Test API Key for demo payments with Test Cards.
• Live Mode uses your Live API Key for real payments.
• Test and Live webhooks are configured separately.
For more details, see API Modes & Credentials.
Do I need a different API URL for Test and Live?
No. Use https://api.digetpay.com/v1 for both. The API key you send in the x-api-key header decides whether a request runs in Test Mode or Live Mode. To go live, switch the key and your webhook configuration; the URL stays the same.
Which integration option should I choose?
Choose the integration method that best fits your business:
- Hosted Checkout – Redirect customers to a secure DigetPay payment page (recommended for the fastest integration).
- Embedded (S2S) – Build a fully customized checkout experience using server-to-server APIs. Requires PCI DSS compliance.
- CMS Plugins – Integrate quickly using WooCommerce or OpenCart plugins.
See Choose Integration Path for a complete comparison.
Authentication & errors
Which authentication method should I use?
Payment APIs require the x-api-key header, with your Test API Key or Live API Key.
Merchant Portal APIs (such as Webhooks, SDK Tokens, and Credential Management) require a Bearer Token. SDK products (SoftPOS, SmartPOS and mobile SDKs) use SDK tokens. These are different credentials and are not interchangeable.
Why am I receiving a 401 Unauthorized response?
Common causes include:
- Missing or invalid
x-api-key. - Using a key other than the Test or Live API Key you intended, for example a revoked or replaced key.
- Using a Bearer Token on payment endpoints.
- Using an API key on Merchant Portal endpoints.
- Calling an endpoint with a base URL other than
https://api.digetpay.com/v1.
Why do I get 403 "SDK/API and Plugins are disabled for this merchant"?
API, SDK and plugin access has not been enabled for your merchant account yet. This is enabled by DigetPay and cannot be turned on from the Merchant Dashboard.
Contact [email protected] with your merchant ID and the mode you need (Test, Live or both).
Hosted Checkout payments
Why is customerPhone required when creating a Payment Link?
The customerPhone field is required for customer identification and to support certain payment methods such as Apple Pay. Requests without this field return 400 Bad Request.
Why is the checkout endpoint spelled 'intiate'?
The current endpoint is:
POST /payment/checkout/intiateAlthough the spelling appears unusual, this is the official DigetPay endpoint and should be used exactly as documented.
Which ID do I use to check status and to refund?
Hosted Checkout uses two IDs:
- Session ID — the
idreturned by Create Payment Link. Use it to check status:GET /payment/checkout/status?sessionId={id} - Transaction ID — the
transactionIdin the Status API response. Use it for refunds:POST /payment/refund
Store both with your order. Do not send the session ID to the refund API. See Transaction Identifiers.
The Status API returns "Missing sessionId". What's wrong?
The Status API takes the session ID in the sessionId query parameter, not id:
GET /payment/checkout/status?sessionId=6ef1a1ed-8388-4f1e-b5cb-6be8ee1f8d09Can I rely on the Success Redirect URL to confirm payment?
No.
Customers may close their browser before the redirect occurs, and reaching successUrl is not proof of payment.
Always confirm the final status with the Transaction Status API on your server. A payment is successful only when transactionStatus is SUCCESS and paymentStatus is APPROVED. A webhook notification can tell you when to check, but it is a notification, not proof of payment.
How do I test payments in Test Mode?
- Create a payment using the Create Payment Link API with your Test API Key.
- Open the returned
redirectUrl. - Complete the payment using the Test Cards.
- Verify the transaction with the Status API, and check that your Test webhook was received.
See the Testing Guide and Test Cards.
My Test Card payment was declined. What should I check?
- You are using your Test API Key, not your Live API Key.
- You entered the Test Card number, expiry and CVV exactly as listed on Test Cards.
- You checked the result with the Status API, not only the checkout page.
If an approved Test Card is still declined, contact [email protected] with the merchantOrderId, sessionId, time of the payment (UTC) and the Status API response. Do not send your API key.
Refunds
The refund API returned "accepted". Is the refund complete?
Not yet. result: accepted means DigetPay accepted the refund request. The refund completes asynchronously.
Check the Status API until refundStatus is PARTIAL or FULL, and mark the refund as complete in your system only then. Do not send the same refund again while it is pending, so the customer is not refunded twice. See Process Refund.
Can I make partial refunds?
Yes. You can refund a payment in several partial refunds until the full amount is refunded. Each refund must be at least 0.01 and must not exceed the remaining refundable balance.
Webhooks
Do Test and Live use the same webhook URL?
Test Mode and Live Mode have separate webhook configurations in the Merchant Dashboard, each with its own delivery destination. Register a URL for each mode you use, and keep them separate so test events never reach live systems. See Configure Webhooks.
Are webhooks signed? How do I verify the signature?
Yes. Each webhook includes two headers:
X-DigetPay-Timestamp— Unix timestamp in seconds, e.g.1793084371X-DigetPay-Signature—sha256=followed by a hex HMAC-SHA256 signature
The signature is computed over the timestamp, a dot, and the raw request body exactly as received, using your API key for the same mode as the key: your Test API Key for Test webhooks, and your Live API Key for Live webhooks. There is no separate webhook secret.
const ts = req.headers['x-digetpay-timestamp'];
const expected = crypto.createHmac('sha256', apiKey)
.update(`${ts}.${rawBody}`, 'utf8')
.digest('hex');
// compare with the header value after removing "sha256=", using a timing-safe comparisonDo not parse and re-serialize the JSON before verifying. Reject webhooks whose timestamp is too old (for example more than 5 minutes). If you regenerate your API key, the signing key changes too.
Even with a valid signature, confirm the payment with the Status API before you fulfill an order. See Webhook Security.
What should my webhook endpoint return?
Return 200 OK quickly after you accept the notification, and do heavy processing asynchronously. Webhooks can be delivered more than once, so process them idempotently (for example by transactionId + type). See Receiving Webhooks.
Embedded (S2S)
Which ID do I store after an Embedded Direct Sale?
Store trans_id from the Direct Sale response. You send it to Embedded Transaction Status (GET /payment/s2s/transaction/{trans_id}) and Embedded Refund (POST /payment/s2s/refund). Also store transactionId for reconciliation.
The Direct Sale response says result REDIRECT. What do I do?
The customer must complete 3-D Secure. Render the returned html in the customer's browser, or redirect the browser to redirect_url. The payment stays PENDING until 3-D Secure is completed. Then confirm the result with Embedded Transaction Status.
How do I charge a saved card?
Make a Direct Sale with "saveToken": "Y". When the payment succeeds, the card token is returned in Card.Token. Store it securely on your backend, then charge it with POST /payment/s2s/tokenization/sale, using a new orderId for each charge.
A declined payment returned HTTP 200. Is that an error?
No. Declined payments return HTTP 200, because the request itself was processed. Always check the payment status field in the response (for example data.status), not only the HTTP status code.
Plugins
Which store platforms are supported?
DigetPay has plugins for WooCommerce and OpenCart 3.x / 4.x. Both use Hosted Checkout, require a public HTTPS store, and accept SAR. See Plugins.
DigetPay does not appear at checkout in my store. Why?
Check that the plugin is enabled, the API key for the selected mode (Test or Live) is filled in, and the store or checkout currency is SAR.
Going live & support
Where can I find all API endpoints?
All DigetPay APIs are available in the API Reference, including:
- Hosted Checkout
- Embedded (S2S)
- Transactions
- Webhooks
- Account & SDK APIs
Where can I manage API keys and Webhooks?
You can manage your integration directly from the Merchant Dashboard, including:
- API Credentials (Test and Live)
- Webhook Configuration (Test and Live)
- Merchant Settings
What should I complete before going live?
Before switching to Live Mode, make sure you have completed:
- End-to-end payment testing in Test Mode.
- Refund testing.
- Live API Key stored securely and kept separate from your Test API Key.
- Live callback URLs.
- Live webhook configuration.
- Support contact verification.
See the Go-Live Checklist.
How can I contact DigetPay Support?
For API credentials, Live Mode access, or integration assistance, contact us at:
Include your merchant ID, the IDs of the affected payment (merchantOrderId, sessionId or trans_id), the time (UTC), and the full API response. Never send your API key.
Updated about 1 month ago

