n8n-nodes-paystack
v0.1.3
Published
n8n community node for the Paystack payment platform
Maintainers
Readme
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.
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-paystackCredentials
To use this node, you need a Paystack account.
- Go to your Paystack Dashboard.
- Navigate to Settings > API Keys & Webhooks.
- Copy your Secret Key (use the
sk_test_...key for testing andsk_live_...for production). - In n8n, create a new Paystack API credential and paste your Secret Key.
Operations
Transaction
- Initialize: Start a new transaction.
- Verify: Confirm the status of a transaction using its reference.
- Fetch: Get details of a single transaction.
- List: Retrieve a list of your transactions.
Customer
- Create: Add a new customer to your integration.
- Update: Modify an existing customer's details.
- Fetch: Get a customer's profile.
- List: Retrieve your customer list.
Refund
- Create: Initiate a refund for a transaction.
- List: View previous refunds.
Plan
- Create: Set up a new recurring billing plan.
- List: View all your plans.
Subscription
- Create: Enroll a customer in a plan.
- Disable: Cancel a subscription.
- List: View all subscriptions.
Transfer
- Create Recipient: Set up a destination for transfers.
- Initiate: Send money to a recipient.
- Finalize: Complete a transfer requiring OTP.
- List: View transfer history.
Balance
- Fetch Balance: See your current Paystack account balance.
- List Banks: Get a list of supported banks and their codes.
- Resolve Account: Verify a bank account number.
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.
Development
- Clone the repository:
git clone https://github.com/tjava/n8n-nodes-paystack.git- Install dependencies:
npm install- Build the node:
npm run build- Link for local development:
npm link- In your local n8n directory:
npm link n8n-nodes-paystack