Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Payment type in the email for authorize.net

    For some reason I am not getting the payment method in the authorize.net emails. Anytime i did an upgrade in the past I would make the following changes, But for some reason i am no longer able to get the payment method on the email

    path: /includes/modules/payment/authorizenet_aim.php

    What i did was find this
    Code:
      function before_process() {
        global $response, $db, $order, $messageStack;
        $order->info['cc_owner']   = $_POST['cc_owner'];
        $order->info['cc_number']  = str_pad(substr($_POST['cc_number'], -4), strlen($_POST['cc_number']), "X", STR_PAD_LEFT);
        $order->info['cc_expires'] = '';  // $_POST['cc_expires'];
        $order->info['cc_cvv']     = '***';

    replace with
    Code:
    function before_process() {
        global $response, $db, $order, $messageStack;
        $order->info['cc_owner']   = $_POST['cc_owner'];
        $order->info['cc_number']  = str_pad(substr($_POST['cc_number'], -4), strlen($_POST['cc_number']), "X", STR_PAD_LEFT);
        $order->info['cc_expires'] = '';  // $_POST['cc_expires'];
        $order->info['cc_cvv']     = '***';
        $order->info['cc_type']    = $_POST['cc_type'];

  2. #2
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: Payment type in the email for authorize.net

    to make it simple I am just looking to add the credit cart number in the email

    Credit Card

    Visa XX55555

  3. #3
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: Payment type in the email for authorize.net

    Okay the authorize.net script does work correcty.

    Payment Method
    ------------------------------------------------------
    Credit Card

    Visa XX5555



    Question I have is when I add an api script i loose card type in the email like shown below

    Payment Method
    ------------------------------------------------------
    Credit Card


    i am putting this api on line 283 (authorize.net_aim.php) (could it be where i am placing the api causing me not to get the cc_type)
    https://github.com/zencart/zencart/b...izenet_aim.php

    Code:
    //eye4fraud 
      if ($response_code == '1' || $response_code == '4')
      {
        $post_array = array(
    
          'ApiLogin'              => 'xxx',
    
          'ApiKey'                => 'xxx',
    
          'TransactionId'         => $response[6],
    
          'OrderDate'             => date("Y-m-d H:i:s"),
    
          'OrderNumber'           => $new_order_id,
    
          'BillingFirstName'      => $order->billing['firstname'],
    
          'BillingLastName'       => $order->billing['lastname'],
    
          'BillingCompany'        => $order->billing['company'],
    
          'BillingAddress1'       => $order->billing['street_address'],
    
          'BillingCity'           => $order->billing['city'],
    
          'BillingState'          => $order->billing['state'],
    
          'BillingZip'            => $order->billing['postcode'],
    
          'BillingCountry'        => $order->billing['country']['title'],
    
          'BillingEveningPhone'   => $order->customer['telephone'],
    
          'BillingEmail'          => $order->customer['email_address'],
    
          'IPAddress'             => $submit_data['x_customer_ip'],
    
          'ShippingFirstName'     => $order->delivery['firstname'],
    
          'ShippingLastName'      => $order->delivery['lastname'],
    
          'ShippingCompany'       => $order->delivery['company'],
    
          'ShippingAddress1'      => $order->delivery['street_address'],
    
          'ShippingCity'          => $order->delivery['city'],
    
          'ShippingState'         => $order->delivery['state'],
    
          'ShippingZip'           => $order->delivery['postcode'],
    
          'ShippingCountry'       => $order->delivery['country']['title'],
    
          'ShippingCost'          => $submit_data['x_freight'],
    
          'GrandTotal'            => str_replace( ',', '', $submit_data['x_amount']),
    
          'CCType'                => $_POST['cc_type'],
    
          'CCFirst6'              => substr($_POST['cc_number'], 0, 6),
    
          'CCLast4'               => substr($_POST['cc_number'], -4),
    
          'CIDResponse'           => $response[38],
    
          'AVSCode'               => $response[5],
    
          'CustomerComments'      => $description
    
          );
    
    
          $post_query = http_build_query($post_array);
    
          $ch = curl_init();
    
          curl_setopt($ch, CURLOPT_URL,'https://www.eye4fraud.com/api/');
    
          // "https://www.eye4fraud.com/api/"    'http://52.2.235.58/Gateway2.php'); 
    
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    
          curl_setopt($ch, CURLOPT_POST, 1);
    
          curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
    
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    
          $response = curl_exec($ch);
    
          curl_close($ch);   
    }
    //eof eye4fraud

 

 

Similar Threads

  1. v154 Authorize.net returns a payment error when attempting to process payment
    By tjetzer in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Apr 2021, 05:29 PM
  2. v156 Authorize.net email credit card type and phone number
    By chadlly2003 in forum General Questions
    Replies: 4
    Last Post: 27 Dec 2018, 06:13 PM
  3. v155 Do the Authorize.net payment modules include Level II / Level III data in transaction
    By Zean in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Feb 2017, 06:33 PM
  4. v154 Card Type not being recorded for authorize.net orders
    By jeking in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 21 Mar 2015, 02:35 AM
  5. Changing password for Authorize.net payment module
    By mirmir37 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Dec 2006, 10:12 AM

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