Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Plugin Contributions
    0

    Default Using different Authorization types for different customers in firstdata?

    I am using the linkpoint/firstdata API payment method in my store. I would like to be able to have this use Immediate Charge/Capture for the Authorization type for customers in North America and use Authorize Only for customers outside North America.

    Is this possible?

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Using different Authorization types for different customers in firstdata?

    You will need to have your zones setup for North America and for outside of North America correctly

    You can then clone the payment module and specify in each the applicable zone when configuring in the admin

    This is a primer on cloning a sipping module but the principals are the same
    You would have the normal linkpoint module and a cloned one named maybe linkpoint _intl
    https://www.zen-cart.com/tutorials/i...hp?article=189
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Using different Authorization types for different customers in firstdata?

    Or clone the zone-detection logic from the module's update_status() method and use that to determine which auth mode to activate when submitting the transaction.
    Definitely custom coding for custom purposes.
    .

    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.

  4. #4
    Join Date
    Jul 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Using different Authorization types for different customers in firstdata?

    Thank you both for giving me some suggestions. I will look into each of them.

  5. #5
    Join Date
    Jul 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Using different Authorization types for different customers in firstdata?

    I was able to successfully clone the linkpoint/firstdata payment module. I just have one more question. The module is set up so I can select a zone for the module to use. Is there a way to change it so that it will not use the zone I select. I think the code below is the code I need to change, but I am not sure what to change.


    Code:
      function update_status() {
        global $order, $db;
    
        if ( $this->enabled && $this->zone > 0 ) {
          $check_flag = false;
          $sql = "SELECT zone_id
                  FROM " . TABLE_ZONES_TO_GEO_ZONES . "
                  WHERE geo_zone_id = :zoneId
                  AND zone_country_id = :countryId
                  ORDER BY zone_id";
          $sql = $db->bindVars($sql, ':zoneId', $this->zone, 'integer');
          $sql = $db->bindVars($sql, ':countryId', $order->billing['country']['id'], 'integer');
          $check = $db->Execute($sql);
          while (!$check->EOF) {
            if ($check->fields['zone_id'] < 1) {
              $check_flag = true;
              break;
            } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
              $check_flag = true;
              break;
            }
            $check->MoveNext();
          }
    
          if (!$check_flag) {
            $this->enabled = false;
          }
        }
    Thank you

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Using different Authorization types for different customers in firstdata?

    Is there a way to change it so that it will not use the zone I select.
    If you cloned it and have your 2 zones setup

    Set the original one for north america zone and the cloned for your other zone
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v139h Different Authorization types depending on customer location....
    By Crzipilot in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Mar 2013, 08:42 PM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 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