I have created my own payment method by taking reference of another method. I wannt to store my payment gateway’s transaction id to order payment details (sales/order_payment) on successful payment action.
How can I store transaction id to this table ?
1) Add an SQL install script to your module, where we will add a new attribute to the order object
you could then add a observer to hook the payment event, so you would need to add code to yoru config.xml to enable your observer to hook onto the event:
You would then add an observer model to your module: