How To Add Extra Payment Info To Order?

I have created a new payment gateway addon. I want to add extra payment information to order details. How to add extra payment info to order?

If you call fn_finish_payment function when the transaction is completed, you can add extra information to the $pp_response array. Use built-in payment methods as example