Skip to main content

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 SettingsAPI Keys and copy your production secret key (starts with fk_production_)
3

Store Securely

Save your API key as an environment variable:
FossaPay currently operates in production only. Any API call you make will hit production systems, so use small live amounts when you are validating your integration.

Step 2: Create a Customer

Create the customer before creating any wallet or payment flow.
Expected Response:

Step 3: Create Your First NGN Wallet

Create an NGN wallet for the customer you just created:
Expected Response:

Step 4: Configure Your Webhook

Configure your webhook URL and secret in the dashboard before making a live deposit.
  1. Go to Settings → Webhooks
  2. Set your webhook URL
  3. Copy the webhook secret and store it as FOSSAPAY_WEBHOOK_SECRET
  4. Make sure your handler expects deposit.completed for incoming deposits
When a deposit is received in production, FossaPay sends a webhook to your server. Here’s how to handle it:
Local Development: Use ngrok to expose your local server while you build:
Then set the ngrok URL in your webhook settings.

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 a deposit.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:
  1. Complete business verification in the dashboard
  2. Use production API keys (starts with fk_production_)
  3. Update webhook URL to your production server
  4. Test with small amounts before full launch
  5. 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