I want to pass/show the payment provider used and ideally transaction id (would settle for request id though) in a payment_received template. Is there a way to access these values?
The only way I can think of doing this is to make a database call within getPurchasableFromExtraData to search for a purchase request with the same extra_data. If they match, then join the payment_provider table and get the display_title. This feels ultra hacky though.
Thank you!
Edit: NVM, looks like you can access the purchase request directly via $purchaseRequest.
The only way I can think of doing this is to make a database call within getPurchasableFromExtraData to search for a purchase request with the same extra_data. If they match, then join the payment_provider table and get the display_title. This feels ultra hacky though.
Thank you!
Edit: NVM, looks like you can access the purchase request directly via $purchaseRequest.
Last edited: