Changeset 1785732
- Timestamp:
- 12/12/2017 08:07:23 PM (8 years ago)
- Location:
- cardinalcommerce-oneconnect/trunk
- Files:
-
- 12 edited
-
README.txt (modified) (2 diffs)
-
changelog.txt (modified) (1 diff)
-
includes/abstracts/abstract-wc-gateway-cardinalpm.php (modified) (5 diffs)
-
includes/classes/class-wc-gateway-cardinalpm-common.php (modified) (2 diffs)
-
includes/classes/class-wc-gateway-cardinalpm-payment-form.php (modified) (1 diff)
-
includes/classes/class-wc-gateway-cardinalpm-plugin.php (modified) (3 diffs)
-
php-src/CardinalCommerce/Payments/Carts/WooCommerce/Settings/AdminSettings.php (modified) (1 diff)
-
vendor/cardinalcommerce/cart-common/src/CardinalCommerce/Payments/Carts/Common/Payment/Implementations/ProcessorModuleV2/PaymentMethodOrder.php (modified) (1 diff)
-
vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/AuthorizationRequest.php (modified) (1 diff)
-
vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/CaptureRequest.php (modified) (2 diffs)
-
vendor/cardinalcommerce/client/src/CardinalCommerce/Client/ProcessorModule/ProcessorModuleClient.php (modified) (3 diffs)
-
vendor/cardinalcommerce/client/src/CardinalCommerce/Payments/Objects/PaymentExtensions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cardinalcommerce-oneconnect/trunk/README.txt
r1760948 r1785732 4 4 Requires at least: 4.6 5 5 Tested up to: 4.7.5 6 Stable tag: 1.1.06 Stable tag: 2.0 7 7 License: GPLv3 or later 8 8 LicenseURI: http://www.gnu.org/licenses/gpl-3.0.html … … 92 92 == Changelog == 93 93 94 = 2017.12.12 - Version 2.0 = 95 * Changed the way ECI and CAVV values are passed during authorization and capture 96 94 97 = 2017.11.07 - Version 1.1.0 = 95 98 * Added Enable / Disable gateway functionality in settings -
cardinalcommerce-oneconnect/trunk/changelog.txt
r1760391 r1785732 1 1 *** CardinalCommerce OneConnect 3D-Secure for Authorize.net Changelog *** 2 3 2017.12.12 - version 2.0 4 * Changed the way ECI and CAVV values are passed during authorization and capture 2 5 3 6 2017.11.07 - version 1.1.0 -
cardinalcommerce-oneconnect/trunk/includes/abstracts/abstract-wc-gateway-cardinalpm.php
r1760391 r1785732 39 39 * WC_Gateway_CardinalPM Class. 40 40 */ 41 abstract class WC_Gateway_CardinalPM extends \WC_Payment_Gateway_CC{41 abstract class WC_Gateway_CardinalPM extends WC_Payment_Gateway { 42 42 43 43 /** … … 50 50 */ 51 51 private $_settings; 52 53 /** @var string payment type, one of 'credit-card' or 'echeck' */ 54 private $payment_type = 'credit-card'; 52 55 53 56 public function __construct() { … … 68 71 69 72 $this->has_fields = true; 73 74 $this->init_form_fields(); 75 76 $this->init_settings(); 77 70 78 $this->order_button_text = __( 'Complete Payment', 'wc-cardinalprocessormodule' ); 71 79 … … 140 148 141 149 /** 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 /** 142 160 * Define payment fields 143 161 */ 144 //public function payment_fields() {145 //$this->get_payment_form()->render();146 //}162 public function payment_fields() { 163 $this->get_payment_form()->render(); 164 } 147 165 148 166 /** 149 167 * Get the payment form class 150 168 */ 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 } 154 172 155 173 /** … … 322 340 } 323 341 } 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 15 15 * @class WC_Gateway_CardinalPM 16 16 * @extends WC_Payment_Gateway 17 * @version 1.1.017 * @version 2.0 18 18 * @package CardinalCommerce/Carts/WooCommerce/Payment 19 19 * @author CardinalCommerce … … 27 27 28 28 const DEFAULT_TITLE = 'Credit Card'; 29 const DEFAULT_DESCR = 'Credit Card payment with optionalCardinal Consumer Authentication (CCA)';29 const DEFAULT_DESCR = 'Credit Card payment with Cardinal Consumer Authentication (CCA)'; 30 30 31 31 const DEFAULT_METHOD_TITLE = 'CardinalCommerce OneConnect'; 32 32 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 33 57 } -
cardinalcommerce-oneconnect/trunk/includes/classes/class-wc-gateway-cardinalpm-payment-form.php
r1760391 r1785732 1 1 <?php 2 2 3 class WC_Gateway_CardinalPM_Payment_Form{ 3 defined( 'ABSPATH' ) or exit; 4 5 if ( ! class_exists( 'WC_Gateway_CardinalPM_Payment_Form' ) ) : 6 7 class 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; 4 14 5 15 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; 7 53 } 8 54 9 55 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 ); 11 247 } 12 248 13 249 } 250 251 endif; // class exists check -
cardinalcommerce-oneconnect/trunk/includes/classes/class-wc-gateway-cardinalpm-plugin.php
r1683584 r1785732 30 30 */ 31 31 private $_bootstrapped; 32 32 33 33 /** 34 34 * @var CartProcessors\CheckoutProcessor … … 138 138 } 139 139 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 140 162 /* 141 163 public function resolver() { … … 175 197 return $this->_pluginUrl; 176 198 } 177 199 178 200 public function assets_url() { 179 201 return $this->_assetsUrl; 180 202 } 181 203 182 204 public function config_dir() { 183 205 return $this->_configDir; -
cardinalcommerce-oneconnect/trunk/php-src/CardinalCommerce/Payments/Carts/WooCommerce/Settings/AdminSettings.php
r1760391 r1785732 74 74 75 75 'enabled' => array( 76 'title' => esc_html__( 'Enable / Disable', 'w oocommerce-plugin-framework' ),77 'label' => esc_html__( 'Enable this gateway', 'w oocommerce-plugin-framework' ),76 'title' => esc_html__( 'Enable / Disable', 'wc-cardinalprocessormodule' ), 77 'label' => esc_html__( 'Enable this gateway', 'wc-cardinalprocessormodule' ), 78 78 'type' => 'checkbox', 79 79 'default' => 'yes', -
cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/cart-common/src/CardinalCommerce/Payments/Carts/Common/Payment/Implementations/ProcessorModuleV2/PaymentMethodOrder.php
r1683588 r1785732 68 68 } 69 69 70 /*71 70 public function getPaymentExtensions() { 72 return $this->_paymentExtensions; 71 if ($this->_responseObject == null) { 72 return null; 73 } 74 return $this->_responseObject->Payment->ExtendedData; 73 75 } 74 */75 76 76 77 public function getAuthorizationProcessorObject() { -
cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/AuthorizationRequest.php
r1683588 r1785732 23 23 public $TransactionId; 24 24 25 // TODO: Check these fields26 public $ CAVV;27 public $ ECIFlag;25 public $Cavv; 26 public $Eci; 27 public $Xid; 28 28 29 29 public $OrderId; -
cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/Centinel/Messages/CaptureRequest.php
r1683588 r1785732 21 21 public $TransactionType; 22 22 23 public $Cavv; 24 public $Eci; 25 public $Xid; 26 23 27 public $OrderId; 24 28 public $AuthorizationCode; … … 26 30 public $CurrencyCode; 27 31 public $Description; 28 } 32 } -
cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Client/ProcessorModule/ProcessorModuleClient.php
r1683588 r1785732 84 84 if ( $consumerObject != null ) { 85 85 if ( $consumerObject->BillingAddress != null ) { 86 $request->EMail = $consumerObject->Email1; 86 $request->EMail = $consumerObject->Email1; 87 87 $this->populateAddress( $request, 'Billing', $consumerObject->BillingAddress ); 88 88 } … … 198 198 } 199 199 200 $authReq->Cavv = $paymentExtensions->Cavv; 201 $authReq->Eci = $paymentExtensions->Eci; 202 $authReq->Xid = $paymentExtensions->Xid; 203 200 204 return $centinelClient->sendMessage( $authReq ); 201 205 } … … 227 231 $captureReq->CurrencyCode = $orderDetailsObject->CurrencyCode; 228 232 233 $captureReq->Cavv = $paymentExtensions->Cavv; 234 $captureReq->Eci = $paymentExtensions->Eci; 235 $captureReq->Xid = $paymentExtensions->Xid; 236 229 237 return $centinelClient->sendMessage( $captureReq ); 230 238 } -
cardinalcommerce-oneconnect/trunk/vendor/cardinalcommerce/client/src/CardinalCommerce/Payments/Objects/PaymentExtensions.php
r1683588 r1785732 5 5 public function __construct( $data ) { 6 6 $this->Enrolled = $data->Enrolled; 7 $this->C AVV= $data->CAVV;8 $this->E CIFlag= $data->ECIFlag;7 $this->Cavv = $data->CAVV; 8 $this->Eci = $data->ECIFlag; 9 9 $this->PAResStatus = $data->PAResStatus; 10 10 $this->SignatureVerification = $data->SignatureVerification; 11 $this->X ID= $data->XID;11 $this->Xid = $data->XID; 12 12 $this->UCAFIndicator = $data->UCAFIndicator; 13 13 } 14 14 15 15 public $Enrolled; 16 public $C AVV;17 public $E CIFlag;16 public $Cavv; 17 public $Eci; 18 18 public $PAResStatus; 19 19 public $SignatureVerification; 20 public $X ID;20 public $Xid; 21 21 public $UCAFIndicator; 22 22
Note: See TracChangeset
for help on using the changeset viewer.