Added a fix for txId being undefined in pay.ejs