Getting Started with DGS-Pay: A Complete Integration Guide
Learn how to integrate DGS-Pay payment gateway into your application. Complete guide covering authentication, payment methods, and first API call.
Read more →By DGS-Pay Team | April 4, 2026
Webhooks provide real-time notifications when payment events occur. Unlike polling, webhooks push updates instantly, improving user experience and reducing server load.
DGS-Pay sends webhooks for:
payment.success - Payment completed successfullypayment.failed - Payment was declined or faileddisbursement.success - Transfer completeddisbursement.failed - Transfer failedconversion.success - Currency conversion completedSet your webhook URL in the merchant dashboard under Settings → Webhook Settings. Alternatively, override per-request using the callback_url parameter.
Every webhook includes an HMAC signature for verification. Always verify before processing:
$signature = $_SERVER['HTTP_X_DGS_SIGNATURE'];
$expected = hash_hmac('sha256', $payload, WEBHOOK_SECRET);
if (!hash_equals($expected, $signature)) {
http_response_code(401);
exit('Unauthorized');
}Use the merchant dashboard to resend failed webhooks or test your endpoint with sample payloads.
Learn how to integrate DGS-Pay payment gateway into your application. Complete guide covering authentication, payment methods, and first API call.
Read more →Discover how to accept Mobile Money payments (MTN and Airtel) in Rwanda using DGS-Pay API. Complete integration guide with code examples.
Read more →Learn how to securely process card payments with DGS-Pay. Guide covers AES-256-GCM encryption, PCI compliance, and authorization flows.
Read more →