Support

Home Forums Event Espresso Premium Authorize.net SIM Gateway: Disable X_Line_Item

Authorize.net SIM Gateway: Disable X_Line_Item

Posted: February 14, 2013 at 1:16 pm

Viewing 6 reply threads


Ken Blochowski

February 14, 2013 at 1:16 pm

Hi. I’m working on implementing a payment solution for my event using the Authorize.net SIM Gateway. I notice that among the fields sent to Authorize.net when a customer selects the ‘Pay by Credit Card’ button is an auto-generated one called ‘x_line_item’. This particular field mucks up my payment page with unnecessary information that I fear will confuse our registrants. I’ve been looking through the gateway’s php files in an attempt to disable the creation of this variable or block it from being sent, but I’ve had little luck. Can you tell me how to disable this feature?


Josh

  • Support Staff

February 15, 2013 at 12:29 pm

Hi Ken,

I think Authorize.net requires those variables. You could try removing them, but I’m not sure the transaction will work if you do that.

x_line_item is set in /gateways/authnet/Authorize.php


Ken Blochowski

February 15, 2013 at 12:41 pm

I’m not the greatest expert in php. Would I just delete:

foreach ($this->_additional_line_items as $value) {
echo “\n”;
}


Ken Blochowski

February 15, 2013 at 12:45 pm

I mean delete this?

foreach ($this->_additional_line_items as $value) {
        echo "\n"; 
    }


Ken Blochowski

February 15, 2013 at 12:50 pm

Sorry, I had trouble posting the code. I mean this

foreach ($this->_additional_line_items as $value) {
echo "\n";
}


Josh

  • Support Staff

February 18, 2013 at 8:21 am

It would be:

foreach ($this->_additional_line_items as $value) {
            echo "<input type=\"hidden\" name=\"x_line_item\" value=\"$value\"/>\n";
        }


Ken Blochowski

February 18, 2013 at 8:33 am

Thanks Josh. I figured it out. I just couldn’t get the code to print in the message box for some reason. Thank you!

Viewing 6 reply threads

The support post ‘Authorize.net SIM Gateway: Disable X_Line_Item’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso