Hello, I am currently integrating a custom payment module and have been stuck on the final issue for a while so was wondering it anyone could advise me please.

When a customer pays for an order...