Paystack restricted keys and webhook signing solve two different problems. A restricted key controls what your server may ask Paystack to do. A webhook signing secret helps your server check a message coming the other way. Do not treat either as proof that a particular order is ready to fulfil.
This beginner exercise uses a fictional Nigerian shop and test-mode planning only. No account credentials, customer records or money were used. The downloadable ledger has blank observations because we did not call Paystack or run a live integration for this report.
What the updated Paystack guidance says
Paystack’s support article updated 26 November separates restricted API access from webhook signing. A restricted key cannot replace the signing secret. It also advises testing every dependent integration before retiring a legacy secret key. Do not remove a credential just because one new request works.
The API-key documentation gives transactions:read as an example for a service that only reads transactions. Keep restricted credentials on the server. Granting a narrow permission is a limit on allowed actions, not a guarantee that the integration’s decisions are correct.
Plan a lookup path and a webhook path
For our fictional order-checking service, give the server responsibility for transaction lookup. It should request the test transaction through an authorized route, then compare its reference, successful status, amount and currency with the expected order. A successful API request by itself is not the same as a successful payment.
Separately, give the event receiver responsibility for authenticating incoming test notifications. Follow the current webhook verification documentation for the configured signing method, including the raw body. After authentication, check the event’s transaction and order details before changing order state. Keep duplicate-event handling so a repeated authentic event does not fulfil an order twice.

Why the return page cannot settle the order
A customer reaching a success-looking browser page does not establish that your server received an authentic event. In case A below, the shop has only the return-page signal. Its teaching decision is pending until it obtains trustworthy, matching payment evidence.
In case B, the notification is missing but an authorized server lookup reports a successful transaction matching the order. The shop can reconcile from that evidence. Case C instead has a matching authenticated success event without a browser return. These invented traces show why the two paths should be checked independently.

| Case | Return page | Authentic matching event | Matching lookup | Decision |
|---|---|---|---|---|
| A | yes | no | no | pending; return page alone is insufficient |
| B | yes | no | yes | confirm only after successful lookup matches the order |
| C | no | yes | no | process only after authentic success event matches the order |
Use the test ledger before changing credentials
Assign an owner to both paths. For lookup, plan one permitted transaction read and one out-of-scope request that should fail. For events, plan an authentic matching notification and an invalid-signature case that must not confirm an order. Record actual observations only after running a separately authorized test environment.
Also rehearse a delayed or absent event. Keep the order pending while checking the transaction through an authorized route; do not ask the customer to pay again simply because the event is missing. Escalate conflicting references, amounts or currencies instead of forcing a paid state. Preserve the evidence used for the decision without copying secrets into the worksheet.
Before a credential migration, list plugins, scheduled jobs and other services that still depend on the old configuration. Check test/live separation and each integration’s supported signing method. This article does not change your account, rotate keys or certify a deployment. Use provider documentation for exact implementation details and review the finished integration before release.
Download the integration worksheets
- Fictional payment-signal cases (CSV)
- Blank two-path test ledger (CSV)
- Credential responsibility map (CSV)
- Paystack source register (CSV)
Our API contract project offers another way to separate expected responses from observed results. Cite Nigeria Coding Academy for the fictional shop scenarios and Paystack for the credential and webhook guidance. Source check: 1 December 2026.
