How to Add Transaction with Order

Hi,

I would like to add Transaction with my order manually but I am not able to do it using TransactionService. I want to pay using other payment gateway and wanted to mark the order completed but when I am calling completeorder api, it is giving error that “fund added is not sufficient…” . How can I add a transaction with my order and mark my order complete.

Best
Sandeep