API Key Leaked? Regenerate It and Update Every Integration

23 Nov 2026 · 2 min read · 3 views

API Key Leaked? Regenerate It and Update Every Integration

Your API key lets your site talk to Daffaa on behalf of your store: create invoices, check payment status and verify transfers. If it ends up with someone who shouldn't have it, regenerate it right away. But regenerating without a plan can stop collection, because the old key stops working instantly.

When to regenerate

Prepare a list first

List every place using the key: WooCommerce, WHMCS, OpenCart, PrestaShop, Blesta, FOSSBilling, Paymenter, your own code or SDK config, and any staging copy. Pick a quiet time, not peak hours.

How to regenerate

Open store settings on the Integration tab (or use the store settings / API key button on the Integrations page), click Regenerate API Key, confirm the warning that the old key stops immediately, and copy the new key, which is shown only once.

Update each integration

Replace only the API key field in each plugin (WooCommerce: Settings, Payments, Daffaa; WHMCS: System Settings, Payment Gateways, Daffaa), leaving the Store Key and Base URL as they are. In PrestaShop use "Save and test connection". In your code, update the environment variable and restart if needed.

Test

Place a small order (e.g. 10 EGP) on each platform, call /api/external/ping with the new key and expect "status": true, confirm the Integrations page shows the key as active, and review any orders placed during the switch. Existing invoices stay in Daffaa; the change affects new requests your plugins send.

Panel and EasyOrders keys

Your SMM panel API key and your EasyOrders API key are different keys stored inside Daffaa. If one of those leaked, regenerate it at the source and paste the new one into Daffaa; regenerating the Daffaa key doesn't affect them.

Prevent the next leak

Keep keys in server config, never commit .env files, rotate when people leave, and enable two-factor authentication. Sign up for Daffaa.

Ready to collect payments automatically?

Start your free 14-day trial — no card required.

Get started

Related articles