Integration and Testing

Authorize.Net API questions and help with your payment integration.

Posts: 4
Registered: ‎01-20-2011

Order info in merchant email

Umm... am I missing something obvious? I can add x_line_item hidden fields to the submission and the ordered items appear in the email which is sent to the customer.


There is no mention of what has been ordered in the email sent to the merchant though? How is the merchant to know what was ordered?!


I can create a custom email, but that sort of defeats the purpose - is there no way of adding order details to the merchant email? and if not, why on earth not?

Trusted Contributor
Posts: 451
Registered: ‎08-21-2009

Re: Order info in merchant email

Hi webaria,


Line item data is passed to Authorize.Net from the merchant server so it is assumed that the merchant already has this data and as such it is not returned with the transaction response or displayed on merchant transaction receipts. If you would like, you can include merchant defined field data to have data to have data returned to you that you are not storing, but are collecting from the customer, prior to the submission to however merchant defined field data is only echoed back with the transaction response and displayed on the merchant transaction receipt and will not be displayed in the transaction details in your Authorize.Net account so please do not use them instead of line item field data unless you don't need the data to be stored in Authorize.Net.



Thank you,



Posts: 2
Registered: ‎12-28-2012

Re: Order info in merchant email

Merchant defined field data does not include Itemized Order Information. How do i get Itemized Order Information with included with my Merchant email receipt?




Posts: 4,525
Registered: ‎03-08-2010

Re: Order info in merchant email

Instead of x_line_item, use something like mdf_line_item.

Posts: 14
Registered: ‎01-16-2013

Re: Order info in merchant email

[ Edited ]

For ASP it would look something like this:


                StringBuilder sbAuthorizeItems = new StringBuilder();
                foreach (rowItem in Rows)
                    HtmlInputHidden HI = new HtmlInputHidden();
                    HI.Name = "mdf_line_item";
                    HI.ID = "mdf_line_item";
                        rowItem.Cost + rowItem.AddCost,
                    HI.Value = sbAuthorizeItems.ToString();
                    sbAuthorizeItems.Length = 0;