Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Authorize.net SIM Gateway: Disable X_Line_Item | Event Espresso - Staging Server

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

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

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 - Staging Server