Plugin Directory

Changeset 1914198


Ignore:
Timestamp:
07/24/2018 01:59:28 PM (8 years ago)
Author:
cardinalmarketing
Message:

Support for additional Centinel instances

Location:
cardinalcommerce-oneconnect
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • cardinalcommerce-oneconnect/trunk/Gateway.php

    r1889699 r1914198  
    99        $this->id = 'cardinalpm';
    1010        $this->title = 'Credit Card';
    11         $this->method_title = 'CardinalCommerce OneConnect';
     11        $this->method_title = '3-D Secure Payment Gateway by CardinalCommerce';
    1212
    1313        $this->has_fields = true;
     
    2929        $this->currencies = include
    3030            plugin_dir_path(CARDINAL_ONECONNECT_PLUGIN_FILE) . 'currencies.php';
     31
     32        $this->instances = include
     33            plugin_dir_path(CARDINAL_ONECONNECT_PLUGIN_FILE) . 'instances.php';
    3134    }
    3235
     
    109112                'default' => 'PROD',
    110113                'options' => array(
    111                     'PROD' => 'Production',
    112114                    'STAG' => 'Centinel Test',
     115                    'CYBERSOURCE' => 'CyberSource',
     116                    'FIRSTDATA' => 'FirstData',
     117                    'FIRSTDATA_TEST' => 'FirstData Test',
     118                    'PAYMENTECH' => 'Paymentech',
     119                    'PAYPAL' => 'PayPal',
     120                    '200' => 'Production 200',
     121                    '300' => 'Production 300',
     122                    '400' => 'Production 400',
     123                    'PROD' => 'Production 600',
     124                    '800' => 'Production 800',
     125                    '1000' => 'Production 1000',
     126                    '1200' => 'Production 1200',
    113127                ),
    114128            ),
     
    305319
    306320    public function pm_send_message($msg) {
    307         $mpi_domain = 'centineltest.cardinalcommerce.com';
    308         if ($this->get_option('environment') == 'PROD') {
    309             $mpi_domain = 'centinel600.cardinalcommerce.com';
    310         }
     321        $env = $this->get_option('environment');
     322        $mpi_domain = $this->instances[$env];
    311323        $maps_url = "https://{$mpi_domain}/maps/txns.asp";
    312324        $xml = $this->mpi_xml($msg);
  • cardinalcommerce-oneconnect/trunk/README.txt

    r1900729 r1914198  
    44Requires at least: 4.6
    55Tested up to: 4.7.5
    6 Stable tag: 1.2.4
     6Stable tag: 1.2.5
    77License: GPLv3 or later
    88LicenseURI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5555== Changelog ==
    5656
     57= 2018.07.20 - Version 1.2.5 =
     58 * Add support for different instances
     59
    5760= 2018.06.08 - Version 1.2.4 =
    5861 * Add emulation mode for testing transactions as admin
  • cardinalcommerce-oneconnect/trunk/cardinalcommerce-oneconnect.php

    r1889699 r1914198  
    1616}
    1717
    18 define( 'CARDINAL_ONECONNECT_VERSION', '1.2.4' );
     18define( 'CARDINAL_ONECONNECT_VERSION', '1.2.5' );
    1919define( 'CARDINAL_ONECONNECT_PLUGIN_FILE', __FILE__ );
    2020
Note: See TracChangeset for help on using the changeset viewer.