Get Started with FossaPay
This quickstart guide will have you making your first API call in minutes. We’ll create a customer, open an NGN wallet, use production-only credentials, and verify a real deposit webhook.Prerequisites
Before you begin, make sure you have:- A FossaPay account (Sign up here)
- Your API keys from the dashboard
- Node.js installed (or your preferred programming language)
Step 1: Get Your API Keys
1
Sign up
Create an account at dashboard.fossapay.com
2
Get Live Keys
Navigate to Settings → API Keys and copy your production secret key (starts with
fk_production_)3
Store Securely
Save your API key as an environment variable:
Step 2: Create a Customer
Create the customer before creating any wallet or payment flow.Step 3: Create Your First NGN Wallet
Create an NGN wallet for the customer you just created:Step 4: Configure Your Webhook
Configure your webhook URL and secret in the dashboard before making a live deposit.- Go to Settings → Webhooks
- Set your webhook URL
- Copy the webhook secret and store it as
FOSSAPAY_WEBHOOK_SECRET - Make sure your handler expects
deposit.completedfor incoming deposits
Step 5: Make a Small Live Deposit
From a bank account you control, send a small live deposit to the wallet account number from Step 3. You should receive adeposit.completed webhook with the transaction details and customer ID.
Step 6: Verify the Deposit
Use the transaction ID from the webhook to fetch the transaction record:Step 7: Send a Small Production Payout
Now let’s send money from your wallet to a bank account using a small live amount:Complete Example
Here’s a complete example that ties everything together:Next Steps
Authentication
Learn about API authentication and security
Collections Guide
Complete guide to accepting payments
Payouts Guide
Send money to bank accounts
Webhooks
Handle real-time notifications
Testing Checklist
Before using production for real volume, make sure you’ve tested:- Creating a customer
- Creating NGN wallets
- Receiving and processing webhooks
- Handling webhook failures
- Sending payouts
- Error handling
- Webhook signature verification
Going Live
When you’re ready for regular production use:- Complete business verification in the dashboard
- Use production API keys (starts with
fk_production_) - Update webhook URL to your production server
- Test with small amounts before full launch
- Monitor the dashboard for any issues
Get Live API Keys
Complete verification to get live access
Need Help?
Join Community
Get help from the FossaPay community
Contact Support
Email our support team
API Reference
Explore the full API documentation
Dashboard
View your transactions and settings

