Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Auth.net SIM order address changes not updated in zc order

    It has taken a bit to figure out why a customer's billing and/or address changes during checkout are not changed on the order.

    Is this a auth.net SIM issue or a OPC issue?

    I know auth.net SIM is dated and it has been a while since we used auth.net AIM so I don't know if this also applies to AIM but when/if a customer edits their billing and/or shipping address on the SIM payment screen, those edits are now reflected in the order as saved in the zencart database which then results in orders being shipped to the wrong address.

    In this case the customer was very certain that the address was edited during the checkout process and I could not duplicate the issue within the zencart checkout process (currently using OPC). Today, I realized that the billing and shipping addresses could be edited on the auth.net SIM payment information page. My test order proved that either auth.net SIM is not transmitting that information back to zencart or zencart is ignoring that information.

    I haven't a clue where to look and if I did, I wouldn't have a clue how to fix it or figure out a work-around.

    If the work-around or fix is to switch back to auth.net AIM, then I have a more significant PCI issue.

    Thanks
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Auth.net SIM order address changes not updated in zc order

    The built-in SIM module "sends" the customer address details to the offsite payment page, but doesn't process any changed address information upon return.

    If you want to do that for yourself, you can customize the code:
    Code:
        if ($this->authorize['x_response_code'] == '1'
    //       && $this->authorize['x_type'] == $this->submit_data['x_type']
    //       && $this->authorize['x_method'] == $this->submit_data['x_method']
    //       && $this->authorize['x_amount'] == $this->submit_data['x_amount']
    //       && $this->authorize['x_invoice_num'] == $this->submit_data['x_invoice_num']
    //       && $this->authorize['x_description'] == $this->submit_data['x_description']
           && (/*MODULE_PAYMENT_AUTHORIZENET_MD5HASH == 'DANGEROUSLY-BYPASSED' || */ $this->authorize['x_MD5_Hash'] == $this->authorize['HashValidationValue'])
         ){
          $order->info['cc_type'] = $this->authorize['x_card_type'];
          $order->info['cc_number'] = $this->authorize['x_account_number'];
          $order->info['cc_owner'] = $this->authorize['x_first_name'] . ' ' . $this->authorize['x_last_name'];
          $this->auth_code = $this->authorize['x_auth_code'];
          $this->transaction_id = $this->authorize['x_trans_id'];
    
    /// add your logic to validate, sanitize, and override address information here. Consider also that you should probably also insert extra address-book records for the customer too. 
    
    
          return;
        }
    See approx page 70 at https://www.authorize.net/content/da.../SIM_guide.pdf


    However, a 5-minute fix to both PCI and all this address stuff is to just switch to Square for checkout. :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Auth.net SIM order address changes not updated in zc order

    Thanks DrByte. We were typing at the same time


    Update after looking at auth.net SIM debug file. Probably should post in the OPC support thread but didn't want to duplicate this thread.

    After looking at the auth.net SIM debug log of date returned to zencart by auth.net, the address info returned by auth.net is not being used to update the order information before actually creating the zencart order number. ie: billing and/or shipping information updates.

    OPC v1.1.0 (so that's a bit behind the time)
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Auth.net SIM order address changes not updated in zc order

    Ya, it's not an OPC issue.

    The SIM module for ZC was never built to receive changed address details.
    The AIM module controls all address data within ZC.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Auth.net SIM order address changes not updated in zc order

    I thought that could be the case. It just took several weeks to finally figure out why we had a grumpy customer who swore the address info was changed during checkout but customer didn't look at the final order confirmation, then customer realized the package went to the wrong address when the shipping confirmation was received.

    I didn't think to step all the way through until today. The customer did have the right to be grumpy.

    I may have to switch back to AIM to avoid future instances but not sure I want to (or if I am capable of ) tackle SAQ-D
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 

Similar Threads

  1. Replies: 2
    Last Post: 19 Mar 2016, 01:57 AM
  2. v154 Auth.net SIM currency other than default receives "Not allowed" error
    By RixStix in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 31 Dec 2015, 04:08 AM
  3. v153 Auth.net SIM Error 99 Cannot be accepted
    By RixStix in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 1 Nov 2014, 09:17 PM
  4. Replies: 16
    Last Post: 19 Jul 2010, 03:40 AM
  5. Authorize.net (AIM) Putting AUTH: Code & TransID in order comments
    By nextlevelmotoring in forum General Questions
    Replies: 6
    Last Post: 3 Aug 2009, 07:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg