API Integration Guide
Complete guide to integrate Sabai Money Payment Gateway with LaoQR Code into your application
Quick Start - 5 Minutes to Your First Payment
1 Get Your API Key
Navigate to the API Keys section and create a new key:
Go to API Keys →Your API key will look like:
lpg_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2 Create Your First Payment
Send a POST request to create a payment:
curl -X POST "https://gateway.sabaimoney.com/api/v1/payments/create" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 50000
}'Note: Payment description is automatically generated as "ຊຳລະເງິນສຳລັບ [Your Company Name]"
3 Display QR Code
Use the qr_string from the response to generate a QR code:
// Using qrcode library
const QRCode = require('qrcode');
QRCode.toDataURL(qr_string, (err, url) => {
// Display url as <img src="url" />
});Or use a QR code generator service:
QR Code
4 Check Payment Status
Poll the status endpoint or use webhooks:
curl "https://gateway.sabaimoney.com/api/v1/payments/status/TRANSACTION_REF" \
-H "X-API-Key: YOUR_API_KEY"✓ You're Ready!
You now know the basics. Continue to the API Reference for detailed documentation.