Payment Plugin Persistant info [Solved]

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 年 前
Hi,
I'm working on a payment plugin and that generates a 3 field code (based on settings, cliente ID, order number (for that client) and order value), those 3 fields can then be used by the client to pay the order using a wide range of methods  like bank, debt card, payshops, post offices, etc. (irrelevante for the plugin).

My problem is that I need to be able to include that info on the invoice, as well as to present it to the store admin for him to be able to validate payment (or in the future to validate it automatically)

I don't even need to store the values, I just need a way to call a method that recalcultes it and present it on both the invoice and the order detail page.

Thank you in advance for your help.
11 年 前
I really need to do this... please help or sugest a workarround.
11 年 前
Hi

You can use the order notes to display on the invoice and also the admin can see this.

In payment plugin you can use:

if (order != null)
                {
                    var sb = new StringBuilder();
                    
                    sb.AppendLine("Your info to customer: " + infostring);

                //order note update
                    order.OrderNotes.Add(new OrderNote()
                    {
                        Note = sb.ToString(),
                        DisplayToCustomer = true,
                        CreatedOnUtc = DateTime.UtcNow
                    });
                   _orderService.UpdateOrder(order);
11 年 前
Thank you for your help, I'll try it and then get back to you!
11 年 前
Thanks a lot, you really solved my problem...
It took a little digging, but your idea saved my day!
11 年 前
DMoura wrote:
Thanks a lot, you really solved my problem...
It took a little digging, but your idea saved my day!


I´m Glad I could help you :-)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.