Txn does not support webhooks at this time - this feature is on our roadmap.

Instead, we advise you to set up a cron scheduler and poll our API to check the payment status proactively.

For instance, once an invoice is created, you can poll the Read Invoice endpoint every minute for the next 20 minutes until the invoice either completes or expires.

  • If the invoice completes, stop polling the API

  • If the invoice expires, reduce the polling frequency interval to 1 request per 10 minute for the next 7 days which is 168 hours as there is a chance your customer might make their payment against the invoice after it expires

Please refer to the Invoice Concept page to get more information on the invoice payment status flow.

Last updated