Plugin Directory

Changeset 2977042


Ignore:
Timestamp:
10/10/2023 12:41:43 PM (2 years ago)
Author:
globalpayments
Message:

Release 1.9.4

Location:
global-payments-woocommerce/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • global-payments-woocommerce/trunk/assets/admin/js/globalpayments-admin.js

    r2935282 r2977042  
    1313        this.toggleValidations();
    1414        this.attachEventHandlers();
    15         this.validate_cc_types();
     15        this.validate_checkbox_fields('.accepted_cards.required');
     16        this.validate_checkbox_fields('.aca_methods.required');
    1617    };
    1718    GlobalPaymentsAdmin.prototype = {
     
    2425            $( document ).on( 'change', this.getLiveModeSelector(), this.toggleCredentialsSettings.bind( this ) );
    2526            $( 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' ) );
    2729            $( document ).on( 'click', this.getCheckCredentialsButtonSelector(), this.checkApiCredentials.bind( this ));
    2830
     
    214216
    215217        /**
    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 ) {
    219222            if ( this.isEnabled() ) {
    220                 var checksitems = $( '.accepted_cards.required' );
     223                var checksitems = $( fieldClass );
    221224                var required = true;
    222225                if ( checksitems && checksitems.length > 0 ) {
     
    239242         */
    240243        toggleValidations: function () {
    241             this.validate_cc_types();
     244            this.validate_checkbox_fields( '.accepted_cards.required' );
     245            this.validate_checkbox_fields( '.aca_methods.required' );
    242246
    243247            var button = $('.woocommerce-save-button');
  • global-payments-woocommerce/trunk/assets/frontend/js/globalpayments-googlepay.js

    r2940834 r2977042  
    6666                if ( response.result ) {
    6767                    self.addGooglePayButton( self.id );
     68                } else {
     69                    helper.hidePaymentMethod( self.id );
    6870                }
    6971            } ).catch( function ( err ) {
     
    112114
    113115        getAllowedCardAuthMethods: function () {
    114             return ['PAN_ONLY', 'CRYPTOGRAM_3DS'];
     116            return this.paymentMethodOptions.aca_methods;
    115117        },
    116118
  • global-payments-woocommerce/trunk/globalpayments-gateway-provider-for-woocommerce.php

    r2968747 r2977042  
    44 * Plugin URI: https://github.com/globalpayments/globalpayments-woocommerce
    55 * 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.3
     6 * Version: 1.9.4
    77 * Requires PHP: 7.1
    88 * WC tested up to: 8.0.3
  • global-payments-woocommerce/trunk/metadata.xml

    r2968747 r2977042  
    11<xml>
    2   <releaseNumber>1.9.3</releaseNumber>
     2  <releaseNumber>1.9.4</releaseNumber>
    33</xml>
  • global-payments-woocommerce/trunk/readme.txt

    r2968747 r2977042  
    44Requires at least: 5.4
    55Tested up to: 6.3.1
    6 Stable tag: 1.9.3
     6Stable tag: 1.9.4
    77License: MIT
    88License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE
     
    4747
    4848== 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
    4953= 1.9.3 =
    5054* Added the option to enable/disable the 3DS flow
  • global-payments-woocommerce/trunk/src/PaymentMethods/DigitalWallets/ApplePay.php

    r2912981 r2977042  
    125125                'title'   => __( 'Accepted Cards', 'globalpayments-gateway-provider-for-woocommerce' ),
    126126                'type'    => 'multiselectcheckbox',
    127                 'class'   => 'accepted_cards',
     127                'class'   => 'accepted_cards required',
    128128                'css'     => 'width: 450px; height: 110px',
    129129                'options' => array(
  • global-payments-woocommerce/trunk/src/PaymentMethods/DigitalWallets/GooglePay.php

    r2912981 r2977042  
    5555     */
    5656    public $button_color;
     57
     58    /**
     59     * Methods allowed to authenticate a card transaction
     60     *
     61     * @var array
     62     */
     63    public $aca_methods;
    5764
    5865    /**
     
    110117                ),
    111118            ),
     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            ),
    112138            'button_color'                => array(
    113139                'title'   => __( 'Button Color', 'globalpayments-gateway-provider-for-woocommerce' ),
     
    164190            'cc_types'                    => $this->cc_types,
    165191            'button_color'                => $this->button_color,
     192            'aca_methods'                 => $this->aca_methods,
    166193        );
    167194    }
  • global-payments-woocommerce/trunk/src/Plugin.php

    r2968747 r2977042  
    2121     * @var string
    2222     */
    23     const VERSION = '1.9.3';
     23    const VERSION = '1.9.4';
    2424
    2525    /**
  • global-payments-woocommerce/trunk/vendor/autoload.php

    r2968747 r2977042  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInited12713d59273aef901ce1b2eec7ce3d::getLoader();
     25return ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75::getLoader();
  • global-payments-woocommerce/trunk/vendor/composer/autoload_real.php

    r2968747 r2977042  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInited12713d59273aef901ce1b2eec7ce3d
     5class ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInited12713d59273aef901ce1b2eec7ce3d', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInited12713d59273aef901ce1b2eec7ce3d', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderIniteba4fa8e4849a2ec8e4cf8a25b75cc75', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInited12713d59273aef901ce1b2eec7ce3d::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • global-payments-woocommerce/trunk/vendor/composer/autoload_static.php

    r2968747 r2977042  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInited12713d59273aef901ce1b2eec7ce3d
     7class ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInited12713d59273aef901ce1b2eec7ce3d::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInited12713d59273aef901ce1b2eec7ce3d::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInited12713d59273aef901ce1b2eec7ce3d::$classMap;
     43            $loader->prefixLengthsPsr4 = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$prefixLengthsPsr4;
     44            $loader->prefixDirsPsr4 = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$prefixDirsPsr4;
     45            $loader->classMap = ComposerStaticIniteba4fa8e4849a2ec8e4cf8a25b75cc75::$classMap;
    4646
    4747        }, null, ClassLoader::class);
  • global-payments-woocommerce/trunk/vendor/composer/installed.php

    r2968747 r2977042  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '2abd8a02db0a97aceae7b0d4de82fbd36ab3d42f',
     6        'reference' => '34860f3b20a7110754f3dec69af36fd367a766b5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => '2abd8a02db0a97aceae7b0d4de82fbd36ab3d42f',
     16            'reference' => '34860f3b20a7110754f3dec69af36fd367a766b5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.