PayTM accepts unique transaction ID per payment request. Current kit use WHMCS invoice ID as transaction id. Whether transaction is failed or cancelled by customer, PayTM don't process same request next time & it send transaction failed status with error message duplicate transaction ID.
Every time unique transaction/reference id needs to be passed from WHMCS-PayTM kit.