sdk.pay() directly with the payment payload.
Prerequisites
- Azampay appName
- A consumer ID and API key from the Azampay dashboard
Integration steps
Initialize the SDK
Import
FintechSDK and ProviderType from finconnect, then construct an instance using your credentials:Initiate a USSD push payment
Call
sdk.pay() with the payment payload. ClickPesa accepts the raw payload directly — no ipnId is required.FinConnect automatically authenticates with Azampay via JWT before each payment call. Token management is handled internally — you do not need to call
authenticate() yourself.