Support » Plugins and Hacks » eShop » [Resolved] [Plugin: eShop] Authorize.net Shipping

[Resolved] [Plugin: eShop] Authorize.net Shipping

  • Kory


    I’ve set up my cart with Authorize.net as the payment gateway. When I place a test order, I get two emails. One email is from the plugin, giving the correct product and shipping costs with the correct total, and looks like this:

    Quantity: 1
    Price: $30.00
    Shipping Charge: $5.00
    Total $35.00

    The other email is from my Authorize.net account and it looks like this:

    Quantity: 1
    Price: $30.00
    Shipping Charge: $5.00
    Total $30.00

    It seems like Authorize.net isn’t adding the shipping cost on to the order total. Has anyone else experienced this, or know how to fix it?


Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author elfin


    that sounds more like an authorize.net issue than an eShop one, check your settings.

    I have the same issue. Authorize.net states that they only process the total provided to them. They do not calculate a total for us. So eShop is apparently not including shipping costs within the total amount sent to Authorize.net.

    My client states that this was working until recently, so the latest version may have altered that calculation.



    Forum Moderator

    Nothing relating to this was changed in the latest version of eShop.

    Ok. Well hopefully you can help me narrow-down the options so we can troubleshoot this ourselves:
    Client has only 4 transactions processed since May. May 28 and June 13 transactions had correct shipping processed with the payment. July 27 and Aug 10 transactions did not. If Authorize.net doesn’t handle calculations, and the July update of eShop didn’t change anything related to the calculation of totals, and there is no user-accessible option to change the way totals are calculated, then what’s left?
    The transaction/itemized order info on Authorize.net does show the proper shipping amount (its listed along with the items purchased). It simply isn’t being added to the total amount.
    I don’t know where else to look for the cause of this problem.



    Forum Moderator

    I am sorry but we can no longer offer support for Authorize.net.

    eShop & Merchant Gateways



    @Runtheball – I’m going to have a look through the PHP code for Authorize.net. I’ll get back to you if I figure anything out.

    I’m having the same exact issue with eshop and authorize.net. It appears as if we need to fix this ourselves. Lets get’r Done!


    1) eShop shows correct shipping charges on confirmation checkout page.
    2) Upon Proceeding to checkout page the (go to Authorize.net) shipping charge is missing.
    3) It appear that the shipping charge NOT is properly transmitted in the order after redirecting to the authorize.net URL. and opening the page.

    1) The problem is not at Authorize.net, as the problem starts during the class conversion when opening the URL.
    2) All my Shipping charges, zones, tax bands, country codes, etc.. are set correctly.
    3) I don not immediately see an obvious code issue (missing tag etc..)

    pertinent lines of code are;
    Authorize.net button.’,’eshop’).'</p>

    <form method=”post” id=”eshopgateway” class=”eshop” action=”‘.$this->authorizenet_url.'”>

    $echortn.='<input type=”hidden” name=”x_line_item” value=”‘.$value.'” />’.”\n”;
    So anyideas guys..


    I’m having this same exact problem. Looking at code now.

    Plugin Author elfin


    Could one of you either put eShop into test mode, or turn javascript off.

    then make a purchase that you know has failed, get to the redirect page – BUT DO NOT go on to Authorize.net.

    View the source of the page, and find the relevant form fields for the data. Specifically the amount and any x_line_item that are in there. Then post that here. If it shows up a possible error I’ll look into posting some code here to see if it fixes it. (can’t guarantee this though).

    Here is what appeared in the source when I ran through a single line order in test mode:

    Order total was $12.98 including tax and shipping. I’m guessing the value of ‘x_amount’ (see below) should be this total? Instead, ‘x_amount’ appears to be the same value as the amount in ‘x_line_item’.

    <input type="hidden" name="x_show_form" value="PAYMENT_FORM" />
    			<input type="hidden" name="x_relay_response" value="TRUE" />
    			<input type="hidden" name="x_relay_url" value="" />
    			<input type="hidden" name="x_version" value="3.1" />
    			<input type="hidden" name="x_test_request" value="TRUE" /><input type="hidden" name="x_first_name" value="Paul" />
    <input type="hidden" name="x_last_name" value="Myrick" />
    <input type="hidden" name="x_company" value="" />
    <input type="hidden" name="x_email" value="paulmyric.k@gmail.com" />
    <input type="hidden" name="x_phone" value="303-303-3030" />
    <input type="hidden" name="x_address" value="1234 Main St" />
    <input type="hidden" name="x_city" value="Any City" />
    <input type="hidden" name="x_state" value="CO" />
    <input type="hidden" name="x_zip" value="80220" />
    <input type="hidden" name="x_country" value="US" />
    <input type="hidden" name="x_ship_to_company" value="" />
    <input type="hidden" name="x_ship_to_address" value="" />
    <input type="hidden" name="x_ship_to_city" value="" />
    <input type="hidden" name="x_ship_to_state" value="" />
    <input type="hidden" name="x_ship_to_postcode" value="" />
    <input type="hidden" name="x_ship_to_country" value="" />
    <input type="hidden" name="x_amount" value="7.48" />
    <input type="hidden" name="x_description" value="wine VEIL" />
    <input type="hidden" name="x_invoice_num" value="8985897745034e8b4a27" />
    <input type="hidden" name="x_fp_sequence" value="275" />
    <input type="hidden" name="x_fp_timestamp" value="1345644724" />
    <input type="hidden" name="x_line_item" value="item1<|>bottle VEIL<|>201 : SOLO<|>1<|>7.48<|>Y" />
    <input type="hidden" name="x_line_item" value="item_s<|>Shipping<|><|>1<|>5.50<|>N" />
    <input type="hidden" name="x_tax" value="0.53" />
             <input class="button" type="submit" id="ppsubmit" name="ppsubmit" value="Proceed to authorize.net ยป" /></p>

    Login value and hash key have been removed from the above post for security.

    Plugin Author elfin


    OK I’ll check the script and see what needs changing to add the shipping amount(item_s) into the amount (x_amount) and post the changes here for you all to test – unless someone beats me to it.

    Plugin Author elfin


    open authorizenet.php in the eShop and find this one line 60

    and add 2 lines after, like this:


    I’m unable to test with authorize.net directly atm, so have no idea if that will work or not.



    I made the changes and it appears to have worked. I got an email with the correct shipping and total. I appreciate your help very much! Thank you.

    Indeed the fix does work! A thousand thanks! elfin, If I make a donation to the paypal link in eShop, will you receive it?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Resolved] [Plugin: eShop] Authorize.net Shipping’ is closed to new replies.
Skip to toolbar