Quickstart Guide
Accept your first payment in less than 5 minutes.
Ready to start? Follow these live steps to integrate SamaPay into your application.
The 3-Step Integration
1
Install the SDK
npm install @samapay/sdk-node
2
Initialise the Client
import { SamaPay } from '@samapay/sdk-node';
const client = new SamaPay('sk_test_hE4n...x1Ky');
3
Create a Checkout Session
const session = await client.checkout.sessions.create({
amount: 2500,
currency: 'GMD',
success_url: 'https://myshop.gm/success'
});
console.log('Redirecting to:', session.url);
Live Progress: If you've reached this point, your backend is now ready to receive Gambian Dalasis!
Security Note: During testing, use the phone number 220-777-TEST to simulate a successful Wave transaction.