Plugin Directory

Changeset 1785732


Ignore:
Timestamp:
12/12/2017 08:07:23 PM (8 years ago)
Author:
cardinalmarketing
Message:

Change the way ECI and CAVV values are passed.

Location:
cardinalcommerce-oneconnect/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • cardinalcommerce-oneconnect/trunk/README.txt

    r1760948 r1785732  
    44Requires at least: 4.6
    55Tested up to: 4.7.5
    6 Stable tag: 1.1.0
     6Stable tag: 2.0
    77License: GPLv3 or later
    88LicenseURI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9292== Changelog ==
    9393
     94= 2017.12.12 - Version 2.0 =
     95 * Changed the way ECI and CAVV values are passed during authorization and capture
     96
    9497= 2017.11.07 - Version 1.1.0 =
    9598 * Added Enable / Disable gateway functionality in settings
  • cardinalcommerce-oneconnect/trunk/changelog.txt

    r1760391 r1785732  
    11*** CardinalCommerce OneConnect 3D-Secure for Authorize.net Changelog ***
     2
     32017.12.12 - version 2.0
     4 * Changed the way ECI and CAVV values are passed during authorization and capture
    25
    362017.11.07 - version 1.1.0
  • cardinalcommerce-oneconnect/trunk/includes/abstracts/abstract-wc-gateway-cardinalpm.php

    r1760391 r1785732  
    3939* WC_Gateway_CardinalPM Class.
    4040*/
    41 abstract class WC_Gateway_CardinalPM extends \WC_Payment_Gateway_CC {
     41abstract class WC_Gateway_CardinalPM extends WC_Payment_Gateway {
    4242
    4343    /**
     
    5050     */
    5151    private $_settings;
     52
     53    /** @var string payment type, one of 'credit-card' or 'echeck' */
     54    private $payment_type = 'credit-card';
    5255
    5356    public function __construct() {
     
    6871
    6972        $this->has_fields         = true;
     73
     74        $this->init_form_fields();
     75
     76        $this->init_settings();
     77
    7078        $this->order_button_text  = __( 'Complete Payment', 'wc-cardinalprocessormodule' );
    7179
     
    140148
    141149    /**
     150     * Returns the payment type for this gateway
     151     *
     152     * @since 2.1.0
     153     * @return string the payment type, ie 'credit-card', 'echeck', etc
     154     */
     155    public function get_payment_type() {
     156      return $this->payment_type;
     157    }
     158
     159    /**
    142160     * Define payment fields
    143161     */
    144   // public function payment_fields() {
    145             // $this->get_payment_form()->render();
    146     // }
     162    public function payment_fields() {
     163            $this->get_payment_form()->render();
     164      }
    147165
    148166  /**
    149167   * Get the payment form class
    150168   */
    151   // public function get_payment_form() {
    152     // return new WC_Gateway_CardinalPM_Payment_Form( $this );
    153   // }
     169    public function get_payment_form() {
     170      return new WC_Gateway_CardinalPM_Payment_Form( $this );
     171  }
    154172
    155173    /**
     
    322340        }
    323341    }
     342
     343
     344    class WC_Gateway_CardinalPM_Payment_Form {
     345
     346      /** @var \WC_Gateway_CardinalPM gateway for this payment form */
     347      protected $gateway;
     348
     349      /** @var bool default to show new payment method form */
     350      protected $default_new_payment_method = true;
     351
     352      public function __construct( $gateway ) {
     353
     354        $this->gateway = $gateway;
     355
     356        // hook up rendering
     357        $this->add_hooks();
     358
     359      }
     360
     361      /**
     362       * Add hooks for rendering the payment form
     363       *
     364       * @see SV_WC_Payment_Gateway_Payment_Form::render()
     365       * @since 4.0.0
     366       */
     367      protected function add_hooks() {
     368
     369        $gateway_id = $this->get_gateway()->get_id();
     370
     371        // fieldset start
     372        add_action( "wc_{$gateway_id}_payment_form_start", array( $this, 'render_fieldset_start' ), 30 );
     373
     374        // payment fields
     375        add_action( "wc_{$gateway_id}_payment_form",       array( $this, 'render_payment_fields' ), 0 );
     376
     377        // fieldset end
     378        add_action( "wc_{$gateway_id}_payment_form_end",   array( $this, 'render_fieldset_end' ), 5 );
     379
     380      }
     381
     382      /**
     383       * Return the gateway for this form
     384       *
     385       * @since 4.0.0
     386       * @return \SV_WC_Payment_Gateway|\SV_WC_Payment_Gateway_Direct
     387       */
     388      public function get_gateway() {
     389        return $this->gateway;
     390      }
     391
     392      public function render() {
     393        /**
     394         * Payment Gateway Payment Form Start Action.
     395         *
     396         * Triggered before the payment fields are rendered.
     397         *
     398         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_payment_form_description() - 15 (outputs payment form description HTML)
     399         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_saved_payment_methods() - 20 (outputs saved payment method fields)
     400         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_sample_check() - 25 (outputs sample check div if eCheck gateway)
     401         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_fieldset_start() - 30 (outputs opening fieldset tag and starting payment fields div)
     402         *
     403         * @since 4.0.0
     404         * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     405         */
     406        do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_start', $this );
     407
     408
     409        /**
     410         * Payment Gateway Payment Form Action.
     411         *
     412         * Triggered for the payment fields.
     413         *
     414         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_payment_fields() - 0 (outputs payment fields like account number, expiry, etc)
     415         *
     416         * @since 4.0.0
     417         * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     418         */
     419        do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form', $this );
     420
     421
     422        /**
     423         * Payment Gateway Payment Form End Action.
     424         *
     425         * Triggered after the payment form fields are rendered.
     426         *
     427         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_fieldset_end() - 5 (outputs clear div, save payment method checkbox, and closing fieldset tag)
     428         * @hooked SV_WC_Payment_Gateway_Payment_Form::render_js() - 5 (outputs JS for instantiating payment form JS class)
     429         *
     430         * @since 4.0.0
     431         * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     432         */
     433        do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_end', $this );
     434      }
     435
     436      /**
     437       * Render the payment form opening fieldset tag and div
     438       *
     439       * @hooked wc_{gateway ID}_payment_form_start @ priority 30
     440       *
     441       * @since 4.0.0
     442       */
     443      public function render_fieldset_start() {
     444
     445        printf( '<fieldset id="wc-%s-%s-form">', esc_attr( $this->get_gateway()->get_id_dasherized() ), esc_attr( $this->get_gateway()->get_payment_type() ) );
     446
     447        printf( '<div class="wc-%1$s-new-payment-method-form js-wc-%1$s-new-payment-method-form">', esc_attr( $this->get_gateway()->get_id_dasherized() ) );
     448      }
     449
     450
     451      /**
     452       * Render the payment fields (e.g. account number, expiry, etc)
     453       *
     454       * @hooked wc_{gateway ID}_payment_form_start @ priority 0
     455       *
     456       * @since 4.0.0
     457       */
     458      public function render_payment_fields() {
     459
     460        foreach ( $this->get_payment_fields() as $field ) {
     461          $this->render_payment_field( $field );
     462        }
     463      }
     464
     465
     466      /**
     467       * Render the payment, a simple wrapper around woocommerce_form_field() to
     468       * make it more convenient for concrete gateways to override form output
     469       *
     470       * @since 4.1.2
     471       * @param array $field
     472       */
     473      protected function render_payment_field( $field ) {
     474
     475        woocommerce_form_field( $field['name'], $field, $field['value'] );
     476      }
     477
     478      /**
     479       * Render the payment form closing fieldset tag, clearing div, and "save
     480       * payment method" checkbox
     481       *
     482       * @hooked wc_{gateway ID}_payment_form_end @ priority 5
     483       *
     484       * @since 4.0.0
     485       */
     486      public function render_fieldset_end() {
     487
     488        // clear
     489        echo '<div class="clear"></div>';
     490
     491        echo '</fieldset>';
     492      }
     493
     494      /**
     495       * Get the payment form fields
     496       *
     497       * @since 4.0.0
     498       * @return array payment fields in format suitable for woocommerce_form_field()
     499       */
     500      protected function get_payment_fields() {
     501
     502          $fields = $this->get_credit_card_fields();
     503
     504      }
     505
     506      /**
     507       * Get default credit card form fields, note this pulls default values
     508       * from the associated gateway
     509       *
     510       * for an explanation of autocomplete attribute values, see:
     511       * @link https://html.spec.whatwg.org/multipage/forms.html#autofill
     512       *
     513       * @since 4.0.0
     514       * @return array credit card form fields
     515       */
     516      protected function get_credit_card_fields() {
     517
     518        $fields = array(
     519          'card-number' => array(
     520            'type'              => 'tel',
     521            'label'             => esc_html__( 'Card Number', 'wc-cardinalprocessormodule' ),
     522            'id'                => 'cardinalpm-card-number',
     523            'name'              => 'cardinalpm-card-number',
     524            'placeholder'       => '•••• •••• •••• ••••',
     525            'required'          => true,
     526            'class'             => array( 'form-row-wide' ),
     527            'input_class'       => array( 'wc-credit-card-form-card-number' ),
     528            'maxlength'         => 20,
     529            'custom_attributes' => array(
     530              'autocomplete'   => 'cc-number',
     531              'autocorrect'    => 'no',
     532              'autocapitalize' => 'no',
     533              'spellcheck'     => 'no',
     534            ),
     535            'value' => '',
     536          ),
     537          'card-expiry' => array(
     538            'type'              => 'text',
     539            'label'             => esc_html__( 'Expiration (MM/YY)', 'wc-cardinalprocessormodule' ),
     540            'id'                => 'cardinalpm-card-expiry',
     541            'name'              => 'cardinalpm-card-expiry',
     542            'placeholder'       => esc_html__( 'MM / YY', 'wc-cardinalprocessormodule' ),
     543            'required'          => true,
     544            'class'             => array( 'form-row-first' ),
     545            'input_class'       => array( 'wc-credit-card-form-card-expiry' ),
     546            'custom_attributes' => array(
     547              'autocomplete'   => 'cc-exp',
     548              'autocorrect'    => 'no',
     549              'autocapitalize' => 'no',
     550              'spellcheck'     => 'no',
     551            ),
     552            'value' => '',
     553          ),
     554          'card-cvc' => array(
     555            'type'              => 'tel',
     556            'label'             => esc_html__( 'Card code', 'wc-cardinalprocessormodule' ),
     557            'id'                => 'cardinalpm-card-cvc',
     558            'name'              => 'cardinalpm-card-cvc',
     559            'placeholder'       => esc_html__( 'CVC', 'wc-cardinalprocessormodule' ),
     560            'required'          => true,
     561            'class'             => array( 'form-row-last' ),
     562            'input_class'       => array( 'wc-credit-card-form-card-cvc' ),
     563            'maxlength'         => 4,
     564            'custom_attributes' => array(
     565              'autocomplete'   => 'off',
     566              'autocorrect'    => 'no',
     567              'autocapitalize' => 'no',
     568              'spellcheck'     => 'no',
     569            ),
     570            'value' => '',
     571          )
     572        );
     573
     574        /**
     575         * Payment Gateway Payment Form Default Credit Card Fields.
     576         *
     577         * Filters the default field data for credit card gateways.
     578         *
     579         * @since 4.0.0
     580         * @param array $fields in the format supported by woocommerce_form_fields()
     581         * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     582         */
     583        return apply_filters( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_default_credit_card_fields', $fields, $this );
     584      }
     585
     586    }
  • cardinalcommerce-oneconnect/trunk/includes/classes/class-wc-gateway-cardinalpm-common.php

    r1683584 r1785732  
    1515* @class       WC_Gateway_CardinalPM
    1616* @extends     WC_Payment_Gateway
    17 * @version     1.1.0
     17* @version     2.0
    1818* @package     CardinalCommerce/Carts/WooCommerce/Payment
    1919* @author      CardinalCommerce
     
    2727
    2828    const DEFAULT_TITLE = 'Credit Card';
    29     const DEFAULT_DESCR = 'Credit Card payment with optional Cardinal Consumer Authentication (CCA)';
     29    const DEFAULT_DESCR = 'Credit Card payment with Cardinal Consumer Authentication (CCA)';
    3030
    3131    const DEFAULT_METHOD_TITLE = 'CardinalCommerce OneConnect';
    3232    const DEFAULT_METHOD_DESCR = 'Process payments with CardinalCommerce with optional Cardinal Consumer Authentication (CCA)';
     33
     34
     35    /**
     36     * Returns the plugin id
     37     *
     38     * @since 2.0.0
     39     * @return string plugin id
     40     */
     41    public function get_id() {
     42      return $this->id;
     43    }
     44
     45
     46    /**
     47     * Returns the plugin id with dashes in place of underscores, and
     48     * appropriate for use in frontend element names, classes and ids
     49     *
     50     * @since 2.0.0
     51     * @return string plugin id with dashes in place of underscores
     52     */
     53    public function get_id_dasherized() {
     54      return str_replace( '_', '-', $this->get_id() );
     55    }
     56
    3357}
  • cardinalcommerce-oneconnect/trunk/includes/classes/class-wc-gateway-cardinalpm-payment-form.php

    r1760391 r1785732  
    11<?php
    22
    3 class WC_Gateway_CardinalPM_Payment_Form{
     3defined( 'ABSPATH' ) or exit;
     4
     5if ( ! class_exists( 'WC_Gateway_CardinalPM_Payment_Form' ) ) :
     6
     7class WC_Gateway_CardinalPM_Payment_Form {
     8
     9  /** @var \WC_Gateway_CardinalPM gateway for this payment form */
     10  protected $gateway;
     11
     12  /** @var bool default to show new payment method form */
     13  protected $default_new_payment_method = true;
    414
    515  public function __construct() {
    6    
     16
     17    $this->gateway = $gateway;
     18
     19    // hook up rendering
     20    $this->add_hooks();
     21
     22  }
     23
     24  /**
     25   * Add hooks for rendering the payment form
     26   *
     27   * @see SV_WC_Payment_Gateway_Payment_Form::render()
     28   * @since 4.0.0
     29   */
     30  protected function add_hooks() {
     31
     32    $gateway_id = $this->get_gateway()->get_id();
     33
     34    // fieldset start
     35    add_action( "wc_{$gateway_id}_payment_form_start", array( $this, 'render_fieldset_start' ), 30 );
     36
     37    // payment fields
     38    add_action( "wc_{$gateway_id}_payment_form",       array( $this, 'render_payment_fields' ), 0 );
     39
     40    // fieldset end
     41    add_action( "wc_{$gateway_id}_payment_form_end",   array( $this, 'render_fieldset_end' ), 5 );
     42
     43  }
     44
     45  /**
     46   * Return the gateway for this form
     47   *
     48   * @since 4.0.0
     49   * @return \SV_WC_Payment_Gateway|\SV_WC_Payment_Gateway_Direct
     50   */
     51  public function get_gateway() {
     52    return $this->gateway;
    753  }
    854
    955  public function render() {
    10 
     56    /**
     57     * Payment Gateway Payment Form Start Action.
     58     *
     59     * Triggered before the payment fields are rendered.
     60     *
     61     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_payment_form_description() - 15 (outputs payment form description HTML)
     62     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_saved_payment_methods() - 20 (outputs saved payment method fields)
     63     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_sample_check() - 25 (outputs sample check div if eCheck gateway)
     64     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_fieldset_start() - 30 (outputs opening fieldset tag and starting payment fields div)
     65     *
     66     * @since 4.0.0
     67     * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     68     */
     69    do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_start', $this );
     70
     71
     72    /**
     73     * Payment Gateway Payment Form Action.
     74     *
     75     * Triggered for the payment fields.
     76     *
     77     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_payment_fields() - 0 (outputs payment fields like account number, expiry, etc)
     78     *
     79     * @since 4.0.0
     80     * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     81     */
     82    do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form', $this );
     83
     84
     85    /**
     86     * Payment Gateway Payment Form End Action.
     87     *
     88     * Triggered after the payment form fields are rendered.
     89     *
     90     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_fieldset_end() - 5 (outputs clear div, save payment method checkbox, and closing fieldset tag)
     91     * @hooked SV_WC_Payment_Gateway_Payment_Form::render_js() - 5 (outputs JS for instantiating payment form JS class)
     92     *
     93     * @since 4.0.0
     94     * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     95     */
     96    do_action( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_end', $this );
     97  }
     98
     99  /**
     100   * Render the payment form opening fieldset tag and div
     101   *
     102   * @hooked wc_{gateway ID}_payment_form_start @ priority 30
     103   *
     104   * @since 4.0.0
     105   */
     106  public function render_fieldset_start() {
     107
     108    printf( '<fieldset id="wc-%s-%s-form">', esc_attr( $this->get_gateway()->get_id_dasherized() ), esc_attr( $this->get_gateway()->get_payment_type() ) );
     109
     110    printf( '<div class="wc-%1$s-new-payment-method-form js-wc-%1$s-new-payment-method-form">', esc_attr( $this->get_gateway()->get_id_dasherized() ) );
     111  }
     112
     113
     114  /**
     115   * Render the payment fields (e.g. account number, expiry, etc)
     116   *
     117   * @hooked wc_{gateway ID}_payment_form_start @ priority 0
     118   *
     119   * @since 4.0.0
     120   */
     121  public function render_payment_fields() {
     122
     123    foreach ( $this->get_payment_fields() as $field ) {
     124      $this->render_payment_field( $field );
     125    }
     126  }
     127
     128
     129  /**
     130   * Render the payment, a simple wrapper around woocommerce_form_field() to
     131   * make it more convenient for concrete gateways to override form output
     132   *
     133   * @since 4.1.2
     134   * @param array $field
     135   */
     136  protected function render_payment_field( $field ) {
     137
     138    woocommerce_form_field( $field['name'], $field, $field['value'] );
     139  }
     140
     141  /**
     142   * Render the payment form closing fieldset tag, clearing div, and "save
     143   * payment method" checkbox
     144   *
     145   * @hooked wc_{gateway ID}_payment_form_end @ priority 5
     146   *
     147   * @since 4.0.0
     148   */
     149  public function render_fieldset_end() {
     150
     151    // clear
     152    echo '<div class="clear"></div>';
     153
     154    echo '</fieldset>';
     155  }
     156
     157  /**
     158   * Get the payment form fields
     159   *
     160   * @since 4.0.0
     161   * @return array payment fields in format suitable for woocommerce_form_field()
     162   */
     163  protected function get_payment_fields() {
     164
     165      $fields = $this->get_credit_card_fields();
     166
     167  }
     168
     169  /**
     170   * Get default credit card form fields, note this pulls default values
     171   * from the associated gateway
     172   *
     173   * for an explanation of autocomplete attribute values, see:
     174   * @link https://html.spec.whatwg.org/multipage/forms.html#autofill
     175   *
     176   * @since 4.0.0
     177   * @return array credit card form fields
     178   */
     179  protected function get_credit_card_fields() {
     180
     181    $fields = array(
     182      'card-number' => array(
     183        'type'              => 'tel',
     184        'label'             => esc_html__( 'Card Number', 'wc-cardinalprocessormodule' ),
     185        'id'                => 'cardinalpm-card-number',
     186        'name'              => 'cardinalpm-card-number',
     187        'placeholder'       => '•••• •••• •••• ••••',
     188        'required'          => true,
     189        'class'             => array( 'form-row-wide' ),
     190        'input_class'       => array( 'wc-credit-card-form-card-number' ),
     191        'maxlength'         => 20,
     192        'custom_attributes' => array(
     193          'autocomplete'   => 'cc-number',
     194          'autocorrect'    => 'no',
     195          'autocapitalize' => 'no',
     196          'spellcheck'     => 'no',
     197        ),
     198        'value' => '',
     199      ),
     200      'card-expiry' => array(
     201        'type'              => 'text',
     202        'label'             => esc_html__( 'Expiration (MM/YY)', 'wc-cardinalprocessormodule' ),
     203        'id'                => 'cardinalpm-card-expiry',
     204        'name'              => 'cardinalpm-card-expiry',
     205        'placeholder'       => esc_html__( 'MM / YY', 'wc-cardinalprocessormodule' ),
     206        'required'          => true,
     207        'class'             => array( 'form-row-first' ),
     208        'input_class'       => array( 'wc-credit-card-form-card-expiry' ),
     209        'custom_attributes' => array(
     210          'autocomplete'   => 'cc-exp',
     211          'autocorrect'    => 'no',
     212          'autocapitalize' => 'no',
     213          'spellcheck'     => 'no',
     214        ),
     215        'value' => '',
     216      ),
     217      'card-cvc' => array(
     218        'type'              => 'tel',
     219        'label'             => esc_html__( 'Card code', 'wc-cardinalprocessormodule' ),
     220        'id'                => 'cardinalpm-card-cvc',
     221        'name'              => 'cardinalpm-card-cvc',
     222        'placeholder'       => esc_html__( 'CVC', 'wc-cardinalprocessormodule' ),
     223        'required'          => true,
     224        'class'             => array( 'form-row-last' ),
     225        'input_class'       => array( 'wc-credit-card-form-card-cvc' ),
     226        'maxlength'         => 4,
     227        'custom_attributes' => array(
     228          'autocomplete'   => 'off',
     229          'autocorrect'    => 'no',
     230          'autocapitalize' => 'no',
     231          'spellcheck'     => 'no',
     232        ),
     233        'value' => '',
     234      )
     235    );
     236
     237    /**
     238     * Payment Gateway Payment Form Default Credit Card Fields.
     239     *
     240     * Filters the default field data for credit card gateways.
     241     *
     242     * @since 4.0.0
     243     * @param array $fields in the format supported by woocommerce_form_fields()
     244     * @param \SV_WC_Payment_Gateway_Payment_Form $this payment form instance
     245     */
     246    return apply_filters( 'wc_' . $this->get_gateway()->get_id() . '_payment_form_default_credit_card_fields', $fields, $this );
    11247  }
    12248
    13249}
     250
     251endif;  // class exists check
  • cardinalcommerce-oneconnect/trunk/includes/classes/class-wc-gateway-cardinalpm-plugin.php

    r1683584 r1785732  
    3030     */
    3131    private $_bootstrapped;
    32    
     32
    3333    /**
    3434     * @var CartProcessors\CheckoutProcessor
     
    138138    }
    139139
     140    /**
     141     * Returns the plugin id
     142     *
     143     * @since 2.0.0
     144     * @return string plugin id
     145     */
     146    //public function get_id() {
     147      //return $this->id;
     148    //}
     149
     150
     151    /**
     152     * Returns the plugin id with dashes in place of underscores, and
     153     * appropriate for use in frontend element names, classes and ids
     154     *
     155     * @since 2.0.0
     156     * @return string plugin id with dashes in place of underscores
     157     */
     158    //public function get_id_dasherized() {
     159      //return str_replace( '_', '-', $this->get_id() );
     160    //}
     161
    140162    /*
    141163    public function resolver() {
     
    175197        return $this->_pluginUrl;
    176198    }
    177    
     199
    178200    public function assets_url() {
    179201        return $this->_assetsUrl;
    180202    }
    181    
     203
    182204    public function config_dir() {
    183205        return $this->_configDir;
  • cardinalcommerce-oneconnect/trunk/php-src/CardinalCommerce/Payments/Carts/WooCommerce/Settings/AdminSettings.php

    r1760391 r1785732  
    7474
    7575            'enabled' => array(
    76                 'title'   => esc_html__( 'Enable / Disable', 'woocommerce-plugin-framework' ),
    77                 'label'   => esc_html__( 'Enable this gateway', 'woocommerce-plugin-framework' ),
     76                'title'   => esc_html__( 'Enable / Disable', 'wc-cardinalprocessormodule' ),
     77                'label'   => esc_html__( 'Enable this gateway', 'wc-cardinalprocessormodule' ),
    7878                'type'    => 'checkbox',
    7979                'default' => 'yes',
  • cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/cart-common/src/CardinalCommerce/Payments/Carts/Common/Payment/Implementations/ProcessorModuleV2/PaymentMethodOrder.php

    r1683588 r1785732  
    6868    }
    6969
    70     /*
    7170    public function getPaymentExtensions() {
    72         return $this->_paymentExtensions;
     71      if ($this->_responseObject == null) {
     72          return null;
     73      }
     74      return $this->_responseObject->Payment->ExtendedData;
    7375    }
    74     */
    7576
    7677    public function getAuthorizationProcessorObject() {
  • cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/AuthorizationRequest.php

    r1683588 r1785732  
    2323    public $TransactionId;
    2424
    25     // TODO: Check these fields
    26     public $CAVV;
    27     public $ECIFlag;
     25    public $Cavv;
     26    public $Eci;
     27    public $Xid;
    2828
    2929    public $OrderId;
  • cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/CaptureRequest.php

    r1683588 r1785732  
    2121    public $TransactionType;
    2222
     23    public $Cavv;
     24    public $Eci;
     25    public $Xid;
     26
    2327    public $OrderId;
    2428    public $AuthorizationCode;
     
    2630    public $CurrencyCode;
    2731    public $Description;
    28 }   
     32}
  • cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/ProcessorModule/ProcessorModuleClient.php

    r1683588 r1785732  
    8484        if ( $consumerObject != null ) {
    8585            if ( $consumerObject->BillingAddress != null ) {
    86                 $request->EMail = $consumerObject->Email1;               
     86                $request->EMail = $consumerObject->Email1;
    8787                $this->populateAddress( $request, 'Billing', $consumerObject->BillingAddress );
    8888            }
     
    198198        }
    199199
     200        $authReq->Cavv = $paymentExtensions->Cavv;
     201        $authReq->Eci = $paymentExtensions->Eci;
     202        $authReq->Xid = $paymentExtensions->Xid;
     203
    200204        return $centinelClient->sendMessage( $authReq );
    201205    }
     
    227231        $captureReq->CurrencyCode = $orderDetailsObject->CurrencyCode;
    228232
     233        $captureReq->Cavv = $paymentExtensions->Cavv;
     234        $captureReq->Eci = $paymentExtensions->Eci;
     235        $captureReq->Xid = $paymentExtensions->Xid;
     236
    229237        return $centinelClient->sendMessage( $captureReq );
    230238    }
  • cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Payments/Objects/PaymentExtensions.php

    r1683588 r1785732  
    55    public function __construct( $data ) {
    66        $this->Enrolled = $data->Enrolled;
    7         $this->CAVV = $data->CAVV;
    8         $this->ECIFlag = $data->ECIFlag;
     7        $this->Cavv = $data->CAVV;
     8        $this->Eci = $data->ECIFlag;
    99        $this->PAResStatus = $data->PAResStatus;
    1010        $this->SignatureVerification = $data->SignatureVerification;
    11         $this->XID = $data->XID;
     11        $this->Xid = $data->XID;
    1212        $this->UCAFIndicator = $data->UCAFIndicator;
    1313    }
    1414
    1515    public $Enrolled;
    16     public $CAVV;
    17     public $ECIFlag;
     16    public $Cavv;
     17    public $Eci;
    1818    public $PAResStatus;
    1919    public $SignatureVerification;
    20     public $XID;
     20    public $Xid;
    2121    public $UCAFIndicator;
    2222
Note: See TracChangeset for help on using the changeset viewer.