WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Authorize.net Shipping (23 posts)

  1. WereAllThieves
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/eshop/

  2. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

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

  3. Runtheball
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  5. Runtheball
    Member
    Posted 1 year ago #

    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.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I am sorry but we can no longer offer support for Authorize.net.
    http://quirm.net/2012/07/20/eshop-merchant-gateways/

  7. WereAllThieves
    Member
    Posted 1 year ago #

    @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.

  8. Wpkenton
    Member
    Posted 1 year ago #

    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!

    Symptoms:

    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.

    Statements:
    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.'">
    <p>';
    $relayURL=$espost['x_relay_url'];
    $amount=str_replace(',','',$espost['amount']);
    $shipping=str_replace(',','',$espost['shipping_1']);
    $echortn.='}

    AND___________________________________________________
    if($shipping>0){
    $value='item_s'.$sep.'Shipping'.$sep.''.$sep.'1'.$sep.$shipping.$sep.'N';
    $echortn.='<input type="hidden" name="x_line_item" value="'.$value.'" />'."\n";
    }
    So anyideas guys..

    WpKenton

  9. pmyrick
    Member
    Posted 1 year ago #

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

  10. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    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).

  11. pmyrick
    Member
    Posted 1 year ago #

    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>
    	     </form>
  12. pmyrick
    Member
    Posted 1 year ago #

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

  13. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    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.

  14. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    open authorizenet.php in the eShop and find this one line 60
    $pvalue=str_replace(',','',$_POST['amount']);'

    and add 2 lines after, like this:

    $pvalue=str_replace(',','',$_POST['amount']);
    $pship=str_replace(',','',$_POST['shipping_1']);
    $pvalue+=$pship;

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

  15. WereAllThieves
    Member
    Posted 1 year ago #

    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.

  16. pmyrick
    Member
    Posted 1 year ago #

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

  17. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Thanks for getting back us on this. We'll roll the change out in the next version of eShop, so you still be able to upgrade without any worries.

    If I make a donation to the paypal link in eShop, will you receive it?

    He/we will, yes. :-)

  18. JenMadison
    Member
    Posted 1 year ago #

    Hi Esmi,

    Thanks for the fix. Authorize.net is now including the shipping in the total.

    I just wanted to let you know that there is one slight problem with it. For some reason, it now charges the tax on shipping twice. Everything else works great,though. (As a short term fix, I have shut off tax on shipping.)

    I have a feeling that the other people who said it the fix works may not be having to charge tax on shipping.

    Best wishes,
    Jen

  19. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    thanks for letting me know, I'll check into that and ensure the fix is in the next release.

  20. JenMadison
    Member
    Posted 1 year ago #

    Hi

    After updating the eshop plugin. My purchases are getting stuck in pending. (Using authorize.net as gateway). Is anyone else having that problem? Any solutions?

    Thanks,
    Jennifer

  21. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    try reverting the change, see if that resolves it for you.

  22. JenMadison
    Member
    Posted 1 year ago #

    Hi,

    Thanks so much for the suggestion Elfin.

    I reverted the change (removed the 2 new lines of code)and the orders are still staying stuck in pending (which seems to also result in no eshop email receipts sent and no transaction code generated). Before the last eshop update, using Authorize.net as the gateway, it was moving to Active and generating the proper emails.

    Any other ideas?

    Thanks again for your help.

    Best wishes,
    Jennifer

  23. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Please post a new topic as this appears to be a different issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic