Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    42
    Plugin Contributions
    0

    Default Authorize.net AIM module passing billing names, not cardholder name

    Authorize.net AIM looks for a First name and Last name as separate submitted fields.

    The checkout pages are presenting a single complete cardholder name entry field, and passing the result to the authorizenet_aim.php module. (authorizenet_aim_cc_owner)

    It gets used in different places, but it's not submitted to Authorize.net.
    Instead, the order billing first and last name fields are passed.

    So if "Jane" "Smith" places an order, and uses Mike Smith's credit card to pay, Jane will enter "Mike Smith" during checkout, but what will be sent to Authorize.net as the cardholder name is "Jane" first name and "Smith" last name.

    'x_first_name' => $order->billing['firstname'],
    'x_last_name' => $order->billing['lastname'],

    Is there a reason it is being done this way, instead of capturing first and last names for the cc owner during checkout and passing them through?

    Before I muck with something that has been around for years now, I thought I should ask for some guidance.

    Thanks!

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: Authorize.net AIM module passing billing names, not cardholder name

    i always find the splitting of names problematic....

    with regards to this specific situation, the interesting thing is that it looks the cc_owner is getting populated as well as validated. i suppose the easiest thing would present code such as this as the start of the before_process function:

    Code:
    $order->info['cc_owner']   = $_POST['cc_owner'];
    
    $parts = explode(" ", $order->info['cc_owner']);
    $lastname = array_pop($parts);
    $firstname = implode(" ", $parts);
    you can then use the $firstname and $lastname variables later in the function. note that firstname will contain everything but the last word in cc_owner. and last name will contain the last word.

    as to why the code is the way it is, your guess is as good as mine. but clearly, it does not look correct as you have accurately pointed out.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Oct 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Authorize.net AIM module passing billing names, not cardholder name

    Thanks for taking the time to look at it. I think you're right. The beauty of Zen Cart is that it is so accessible.

 

 

Similar Threads

  1. v150 Authorize.net SIM module not passing invoice num
    By ckfs1 in forum General Questions
    Replies: 1
    Last Post: 18 Mar 2016, 09:04 PM
  2. Authorize.net AIM Module Not showing up in Checkout
    By jamadri in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 5 Sep 2013, 05:43 PM
  3. Integrating Authorize.net ARB (recurring billing) with AIM
    By bradymc in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 5 Jun 2007, 12:21 AM
  4. Authorize.net AIM module not showing up as payment option
    By daisychick in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 19 Dec 2006, 11:26 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR