Changeset 2977042
- Timestamp:
- 10/10/2023 12:41:43 PM (2 years ago)
- Location:
- global-payments-woocommerce/trunk
- Files:
-
- 12 edited
-
assets/admin/js/globalpayments-admin.js (modified) (4 diffs)
-
assets/frontend/js/globalpayments-googlepay.js (modified) (2 diffs)
-
globalpayments-gateway-provider-for-woocommerce.php (modified) (1 diff)
-
metadata.xml (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/PaymentMethods/DigitalWallets/ApplePay.php (modified) (1 diff)
-
src/PaymentMethods/DigitalWallets/GooglePay.php (modified) (3 diffs)
-
src/Plugin.php (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
global-payments-woocommerce/trunk/assets/admin/js/globalpayments-admin.js
r2935282 r2977042 13 13 this.toggleValidations(); 14 14 this.attachEventHandlers(); 15 this.validate_cc_types(); 15 this.validate_checkbox_fields('.accepted_cards.required'); 16 this.validate_checkbox_fields('.aca_methods.required'); 16 17 }; 17 18 GlobalPaymentsAdmin.prototype = { … … 24 25 $( document ).on( 'change', this.getLiveModeSelector(), this.toggleCredentialsSettings.bind( this ) ); 25 26 $( document ).on( 'change', this.getEnabledGatewaySelector(), this.toggleValidations.bind( this ) ); 26 $( document ).on( 'change', $( '.accepted_cards.required' ), this.validate_cc_types.bind( this ) ); 27 $( document ).on( 'change', $( '.accepted_cards.required' ), this.validate_checkbox_fields.bind( this, '.accepted_cards.required' ) ); 28 $( document ).on( 'change', $( '.aca_methods.required' ), this.validate_checkbox_fields.bind( this, '.aca_methods.required' ) ); 27 29 $( document ).on( 'click', this.getCheckCredentialsButtonSelector(), this.checkApiCredentials.bind( this )); 28 30 … … 214 216 215 217 /** 216 * Checks if cc_types at least one selected 217 */ 218 validate_cc_types: function () { 218 * Checks if checkbox has at least one selected 219 * @param fieldClass 220 */ 221 validate_checkbox_fields: function( fieldClass ) { 219 222 if ( this.isEnabled() ) { 220 var checksitems = $( '.accepted_cards.required');223 var checksitems = $( fieldClass ); 221 224 var required = true; 222 225 if ( checksitems && checksitems.length > 0 ) { … … 239 242 */ 240 243 toggleValidations: function () { 241 this.validate_cc_types(); 244 this.validate_checkbox_fields( '.accepted_cards.required' ); 245 this.validate_checkbox_fields( '.aca_methods.required' ); 242 246 243 247 var button = $('.woocommerce-save-button'); -
global-payments-woocommerce/trunk/assets/frontend/js/globalpayments-googlepay.js
r2940834 r2977042 66 66 if ( response.result ) { 67 67 self.addGooglePayButton( self.id ); 68 } else { 69 helper.hidePaymentMethod( self.id ); 68 70 } 69 71 } ).catch( function ( err ) { … … 112 114 113 115 getAllowedCardAuthMethods: function () { 114 return ['PAN_ONLY', 'CRYPTOGRAM_3DS'];116 return this.paymentMethodOptions.aca_methods; 115 117 }, 116 118 -
global-payments-woocommerce/trunk/globalpayments-gateway-provider-for-woocommerce.php
r2968747 r2977042 4 4 * Plugin URI: https://github.com/globalpayments/globalpayments-woocommerce 5 5 * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. 6 * Version: 1.9. 36 * Version: 1.9.4 7 7 * Requires PHP: 7.1 8 8 * WC tested up to: 8.0.3 -
global-payments-woocommerce/trunk/metadata.xml
r2968747 r2977042 1 1 <xml> 2 <releaseNumber>1.9. 3</releaseNumber>2 <releaseNumber>1.9.4</releaseNumber> 3 3 </xml> -
global-payments-woocommerce/trunk/readme.txt
r2968747 r2977042 4 4 Requires at least: 5.4 5 5 Tested up to: 6.3.1 6 Stable tag: 1.9. 36 Stable tag: 1.9.4 7 7 License: MIT 8 8 License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE … … 47 47 48 48 == Changelog == 49 = 1.9.4 = 50 * GooglePay - configurable Allowed Card Auth Methods 51 * Bug fix - Accepted cards field is not mandatory on Apple pay config 52 49 53 = 1.9.3 = 50 54 * Added the option to enable/disable the 3DS flow -
global-payments-woocommerce/trunk/src/PaymentMethods/DigitalWallets/ApplePay.php
r2912981 r2977042 125 125 'title' => __( 'Accepted Cards', 'globalpayments-gateway-provider-for-woocommerce' ), 126 126 'type' => 'multiselectcheckbox', 127 'class' => 'accepted_cards ',127 'class' => 'accepted_cards required', 128 128 'css' => 'width: 450px; height: 110px', 129 129 'options' => array( -
global-payments-woocommerce/trunk/src/PaymentMethods/DigitalWallets/GooglePay.php
r2912981 r2977042 55 55 */ 56 56 public $button_color; 57 58 /** 59 * Methods allowed to authenticate a card transaction 60 * 61 * @var array 62 */ 63 public $aca_methods; 57 64 58 65 /** … … 110 117 ), 111 118 ), 119 'aca_methods' => array( 120 'title' => __( 'Allowed Card Auth Methods*', 'globalpayments-gateway-provider-for-woocommerce' ), 121 'type' => 'multiselectcheckbox', 122 'class' => 'aca_methods required', 123 'description' => __('PAN_ONLY: This authentication method is associated with payment cards stored on file with the user\'s Google Account. 124 CRYPTOGRAM_3DS: This authentication method is associated with cards stored as Android device tokens. 125 126 PAN_ONLY can expose the FPAN, which requires an additional SCA step up to a 3DS check. Currently, Global Payments does not support the Google Pay SCA challenge with an FPAN. For the best acceptance, we recommend that you provide only the CRYPTOGRAM_3DS option.','globalpayments-gateway-provider-for-woocommerce'), 127 'desc_tip' => true, 128 'css' => 'width: 450px; height: 110px', 129 'options' => array( 130 'PAN_ONLY' => 'PAN_ONLY', 131 'CRYPTOGRAM_3DS' => 'CRYPTOGRAM_3DS', 132 ), 133 'default' => array( 134 'PAN_ONLY', 135 'CRYPTOGRAM_3DS', 136 ), 137 ), 112 138 'button_color' => array( 113 139 'title' => __( 'Button Color', 'globalpayments-gateway-provider-for-woocommerce' ), … … 164 190 'cc_types' => $this->cc_types, 165 191 'button_color' => $this->button_color, 192 'aca_methods' => $this->aca_methods, 166 193 ); 167 194 } -
global-payments-woocommerce/trunk/src/Plugin.php
r2968747 r2977042 21 21 * @var string 22 22 */ 23 const VERSION = '1.9. 3';23 const VERSION = '1.9.4'; 24 24 25 25 /** -
global-payments-woocommerce/trunk/vendor/autoload.php
r2968747 r2977042 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInite d12713d59273aef901ce1b2eec7ce3d::getLoader();25 return ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75::getLoader(); -
global-payments-woocommerce/trunk/vendor/composer/autoload_real.php
r2968747 r2977042 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInite d12713d59273aef901ce1b2eec7ce3d5 class ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInite d12713d59273aef901ce1b2eec7ce3d', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInite d12713d59273aef901ce1b2eec7ce3d', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInite d12713d59273aef901ce1b2eec7ce3d::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
global-payments-woocommerce/trunk/vendor/composer/autoload_static.php
r2968747 r2977042 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInite d12713d59273aef901ce1b2eec7ce3d7 class ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->prefixLengthsPsr4 = ComposerStaticInite d12713d59273aef901ce1b2eec7ce3d::$prefixLengthsPsr4;44 $loader->prefixDirsPsr4 = ComposerStaticInite d12713d59273aef901ce1b2eec7ce3d::$prefixDirsPsr4;45 $loader->classMap = ComposerStaticInite d12713d59273aef901ce1b2eec7ce3d::$classMap;43 $loader->prefixLengthsPsr4 = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$prefixLengthsPsr4; 44 $loader->prefixDirsPsr4 = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$prefixDirsPsr4; 45 $loader->classMap = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$classMap; 46 46 47 47 }, null, ClassLoader::class); -
global-payments-woocommerce/trunk/vendor/composer/installed.php
r2968747 r2977042 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 2abd8a02db0a97aceae7b0d4de82fbd36ab3d42f',6 'reference' => '34860f3b20a7110754f3dec69af36fd367a766b5', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' 2abd8a02db0a97aceae7b0d4de82fbd36ab3d42f',16 'reference' => '34860f3b20a7110754f3dec69af36fd367a766b5', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.