Add Payment information details on Order Detail and Final Order Page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello There,

I'm developing a new plugin, it's a new payment method. It's almost done, but i need to add some information about the payment, i need to add some information about the payment details, after the order is placed. The information has information details about the amount and some other custom information, that should be displayed as a html part.

Add search the forum, and found the Notes object type, but i really need some custom Html to appear on the order detail. Can the method PostProcessPayment be used to add some html?


Thanks,
Pedro Rafael
7 years ago
See how it's done in the Payment Purchase Order plugin (controller):

            paymentInfo.CustomValues.Add(_localizationService.GetResource("Plugins.Payment.PurchaseOrder.PurchaseOrderNumber"), form["PurchaseOrderNumber"]);


The CustomValues will then be added to the Order.
7 years ago
I'm going to try it.
I will post the result.

Thanks!
Pedro Rafael
7 years ago
I already test the solution.
It's not quite there yet.

The CustomValues, is a dictionary, with key and value, and the value can not be html. The value is shown in the page using htmlencode method, so, should not be used with html, but plain text only.

Is there any way to show custom html after order is placed?

Many thanks,
Pedro
5 years ago
hi i need to add note in order while order in in processpayment function
5 years ago
Yes what did you want to note ?

//add a note
AddOrderNote(order, "This note has been noted");
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.