In n8n: create a new workflow → add a Webhook node as trigger (copy the test/production URL) → configure Paystack to POST events to that URL → add action nodes: Set (to transform data), Google Sheets, Slack, HTTP Request, or PostgreSQL. Use the IF node to branch on event.event type. n8n is self-hosted — run it on Railway, DigitalOcean, or your own VPS.
docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n) or use n8n Cloud.{{$json.event}} equals charge.success.Nodes in sequence:
{{$json.event}} = charge.successFor the Postgres node, configure a Postgres credential in n8n with your database connection string. Map the Set node output fields to the Postgres INSERT columns.
Get weekly developer tips
Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.
No spam. Unsubscribe anytime.
See Paystack with Make for a no-code cloud alternative.
KES 2,999
The definitive guide to building payment systems with Paystack — from your first transaction to production-grade payment infrastructure across Africa. 9 modules, 47 lessons. Free preview available.
Start Paystack Course