DevelopersPayment GatewayIntegration Overview
Integration Overview
Collect payments through KongaPay hosted checkout using the KPG.setup SDK flow.
The Payment Gateway lets a merchant collect payments through a hosted checkout via the KongaPay SDK. Payments can be completed through card, KongaPay, USSD, QR, transfer, BNPL, and other enabled channels.
Integration Flow
- Create a KongaPay business account.
- Get your
public_keyandsecret_keyfrom the KongaPay team. - Generate a unique transaction
referenceand SHA-512hashon your backend. - Call
KPG.setupwith amount, reference, hash, public key, callback, and customer details. - The SDK opens hosted checkout in an iframe or redirects to the hosted checkout page.
- Receive the SDK callback, then verify final status server-side before fulfilment.