Currently, only PesaPal supports IPN registration via FinConnect. Calling
registerIpn() on a ClickPesa SDK instance will throw an error: "IPN registration not supported by this provider".Register an IPN URL
Callsdk.registerIpn() with your publicly accessible callback URL and the notification type (GET or POST). The method authenticates with PesaPal, registers the URL, and returns an ipnId.
ipnId is stored by PesaPal and used to identify your notification endpoint. You must pass it to every subsequent pay() call.
Set up your IPN handler
Your IPN handler must respond with HTTP200 quickly. PesaPal sends OrderTrackingId, OrderMerchantReference, and OrderNotificationType as query parameters for GET-type notifications.
Connect IPN registration to payments
The full flow is: register the IPN URL, capture the returnedipnId, then pass it to pay(). FinConnect merges the ipnId into the request payload as notification_id automatically.
Azampay callback
Setting callback api
Azampay uses an HTTPPOST Request to send back the transaction status. Finconnect helps to fetch the public key for verifying the signature to ensure the data sent isn’t tampered with.
Call sdk.handlecallback() to fetch the public key and verify the signature automatically.