I've noticed that the listPayments() method currently provides us with List<PaymentDetails>, but it seems to be missing information related to on-chain payments. I would like to request a solution or guidance on how to obtain both on-chain and off-chain transaction information.
Following is what I want to achieve:

Any assistance or insights on achieving this would be greatly appreciated. Thank you!