Description
n8n-nodes-paystack
This is an n8n community node to interact with Paystack, a leading payment gateway in Africa.
Paystack allows businesses to accept payments via various channels including cards, bank transfers, USSD, and mobile money.
Features
- Transactions: Initialize, verify, fetch, and list transactions.
- Customers: Create, update, fetch, and list customers.
- Plans & Subscriptions: Manage recurring billing.
- Refunds: Process and track refunds.
- Transfers: Create recipients and initiate transfers.
- Balance & Banks: Check your balance and resolve bank accounts.
- Webhook Trigger: Listen for real-time events from Paystack.
- Transaction initialization now supports custom metadata. Paystack returns this metadata in transaction webhook events, allowing workflows to associate a payment with internal records such as an order or user.
What’s New
0.1.4
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-paystack
Credentials
To use this node, you need a Paystack account.
1. Go to your Paystack Dashboard.
2. Navigate to Settings > API Keys & Webhooks.
3. Copy your Secret Key (use the sktest... key for testing and sklive... for production).
4. In n8n, create a new Paystack API credential and paste your Secret Key.
Operations
Transaction
Customer
Refund
Plan
Subscription
Transfer
Balance
Usage
Webhook Trigger
Use the Paystack Trigger node to receive notifications for events like charge.success, transfer.success, and subscription.create. Ensure you copy the Webhook URL from the node and paste it into your Paystack Dashboard settings.
#### Transaction Metadata
When initializing a transaction, use Metadata to add one or more custom key/value pairs. For example, add orderId with the value ORD-12345 to associate the payment with an internal order.
Paystack includes these values in the webhook payload. In a node after Paystack Trigger, access the example value with:
{{$json.data.metadata.orderId}}
Development
1. Clone the repository:
git clone https://github.com/tjava/n8n-nodes-paystack.git
2. Install dependencies:
npm install
3. Build the node:
npm run build
4. Link for local development:
npm link
5. In your local n8n directory:
npm link n8n-nodes-paystack


