Where to Find Your Store Key and API Key in Daffaa, and How to Check They Work
22 Nov 2026 · 2 min read · 7 views
Every Daffaa integration, whether the WooCommerce plugin, the WHMCS module, OpenCart or your developer's own code, needs the same two credentials: the Store Key and the API Key. Most early "the plugin doesn't work" issues turn out to be a key copied incompletely, a key from another store, or a regenerated key while the old one is still in the plugin.
The three values
- Store Key: identifies your store and is also used to sign the "invoice paid" notifications Daffaa sends to your site.
- API Key: proves requests come from you; sent in the X-API-KEY header.
- Base URL: leave it exactly as shown.
Where to find them
Open the Integrations page, pick the right store (Change button), and find the Store Key with Show and Copy buttons in the credentials card, plus the Base URL in the same card.
Generating the API Key
The card only shows whether a key is active. Click the store settings / API key button to open the Integration tab, then Generate (or Regenerate) API Key. The key is stored hashed and shown only once, so copy it immediately and keep it somewhere safe. Generating a new key invalidates the old one at once.
Checking that it works
Some modules have a built-in check, such as PrestaShop's "Save and test connection". Otherwise save the settings, place a small test order (e.g. 10 EGP) and confirm the Daffaa pay page opens with the right amount. Developers can call:
curl -H "X-API-KEY: YOUR_API_KEY" "https://daffaa.net/api/external/ping?store_key=YOUR_STORE_KEY"
A response with "status": true plus your store id and name means the pair is valid; wrong keys are rejected with an error. SMM panel connections use the panel's own API key and a separate Test Integration button that adds a test payment to a panel user's balance.
Common mistakes
Partial copies, keys from two different stores, editing the Base URL, and putting the API Key in front-end code. Keys belong to one store, so give separate sites their own store, and only staff with the create/edit/delete stores permission can reach store settings. Create your Daffaa store to get started.
Ready to collect payments automatically?
Start your free 14-day trial — no card required.
Get started