Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Can I get payment authorization in excess of order total? - authorize.net

    I am using ZC 139 with the built in Authorizenet AIM module. Because of drastic differences between weights and sizes of products being shipped, it is hard to do a flat rate shipping fee, % of weight, or any other simple formula to come up with an accurate shipping rate. So the way we leave it is that actual freight will be determined once the package has been picked and processed.

    What is the best way to set up similar to gas stations? I know capturing more than what is authorized is NOT doable. Therefore my idea is to get authorization from authorize.net for cost+$20 (or some reasonable amount). This way we can go back and then capture cost+$12.17 once the package has completely been processed.

    So I'm taking a stab in the dark, within inc/modules/payment/authorizenet_aim.php

    can I insert something like 'x_amount' => number_format($order->[info['total'] + 20], 2) into the below:

    PHP Code:
        // Populate an array that contains all of the data to be sent to Authorize.net
        
    $submit_data = array(
                             
    'x_login' => trim(MODULE_PAYMENT_AUTHORIZENET_AIM_LOGIN),
                             
    'x_tran_key' => trim(MODULE_PAYMENT_AUTHORIZENET_AIM_TXNKEY),
                             
    'x_relay_response' => 'FALSE'// AIM uses direct response, not relay response
                             
    'x_delim_data' => 'TRUE',
                             
    'x_delim_char' => $this->delimiter,  // The default delimiter is a comma
                             
    'x_encap_char' => $this->encapChar,  // The divider to encapsulate response fields
                             
    'x_version' => '3.1',  // 3.1 is required to use CVV codes
                             
    'x_type' => MODULE_PAYMENT_AUTHORIZENET_AIM_AUTHORIZATION_TYPE == 'Authorize' 'AUTH_ONLY''AUTH_CAPTURE',
                             
    'x_method' => 'CC',
                             
    'x_amount' => number_format($order->info['total'], 2), 
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  2. #2
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: Can I get payment authorization in excess of order total? - authorize.net

    It seems as though the solution is as simple as inserting +20 no additional [] or () needed.

    'x_amount' => number_format($order->info['total'] + 20, 2)
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

 

 

Similar Threads

  1. v150 Authorize.net AIM - Can't get rid of the Alert to install
    By inklingsolutions in forum Basic Configuration
    Replies: 2
    Last Post: 2 Apr 2012, 11:19 PM
  2. Can not get tax to be added to order total
    By harleyhar in forum General Questions
    Replies: 1
    Last Post: 28 Jul 2011, 12:10 AM
  3. Authorize.net SIM - where can I get it?
    By colortheworld in forum Addon Payment Modules
    Replies: 2
    Last Post: 2 Jun 2009, 02:16 AM
  4. Replies: 3
    Last Post: 27 Aug 2008, 12:32 AM
  5. Getting payment from Authorize.net & PayPal but order is not in admin
    By jodib in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 May 2008, 03:03 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