Get Started with Fossapay
This quickstart guide will have you making your first API call in minutes. We’ll create a virtual account, simulate a payment, and handle the webhook notification.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 Test Keys
Navigate to Settings → API Keys and copy your test secret key (starts with
fp_test_sk_)3
Store Securely
Save your API key as an environment variable:
Step 2: Install SDK (Optional)
Step 3: Create Your First Virtual Account
Let’s create a virtual account for collecting payments:Step 4: Simulate a Payment (Sandbox Only)
In sandbox mode, simulate a payment to test your integration:Step 5: Handle Webhook Notification
When a payment is received, Fossapay sends a webhook to your server. Here’s how to handle it:Step 6: Send a Payout
Now let’s send money from your wallet to a bank account: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 going to production, make sure you’ve tested:- Creating virtual accounts
- Simulating payments in sandbox
- Receiving and processing webhooks
- Handling webhook failures
- Sending payouts
- Error handling
- Webhook signature verification
Going Live
When you’re ready for production:- Complete business verification in the dashboard
- Switch to live API keys (starts with
fp_live_sk_) - 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