Plugin Directory

Changeset 2917432


Ignore:
Timestamp:
05/25/2023 03:45:12 PM (23 months ago)
Author:
almapayments
Message:

bump version 4.2.1

Location:
alma-gateway-for-woocommerce
Files:
21 edited
2 copied

Legend:

Unmodified
Added
Removed
  • alma-gateway-for-woocommerce/tags/4.2.1/alma-gateway-for-woocommerce.php

    r2916821 r2917432  
    44 * Plugin URI: https://docs.almapay.com/docs/woocommerce
    55 * Description: Install Alma and boost your sales! It's simple and guaranteed, your cash flow is secured. 0 commitment, 0 subscription, 0 risk.
    6  * Version: 4.2.0
     6 * Version: 4.2.1
    77 * Author: Alma
    88 * Author URI: https://almapay.com
     
    3939
    4040if ( ! defined( 'ALMA_VERSION' ) ) {
    41     define( 'ALMA_VERSION', '4.2.0' );
     41    define( 'ALMA_VERSION', '4.2.1' );
    4242}
    4343if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) {
  • alma-gateway-for-woocommerce/tags/4.2.1/includes/class-alma-payment-gateway.php

    r2916821 r2917432  
    113113
    114114    /**
    115      * Constructor for the gateway.
    116      */
    117     public function __construct() {
     115     * Constructor.
     116     *
     117     * @param bool $basic_checks Do we want to check the basic configuration.
     118     * @throws Alma_No_Credentials_Exception No credentials exception.
     119     */
     120    public function __construct( $basic_checks = true ) {
    118121        $this->id                 = Alma_Constants_Helper::GATEWAY_ID;
    119122        $this->has_fields         = true;
     
    131134        $this->tool_helper        = new Alma_Tools_Helper();
    132135
    133         $this->check_activation();
    134 
    135         $this->check_alma_keys( false );
    136         $this->add_filters();
    137         $this->add_actions();
    138         $this->init_admin_form();
    139         $this->check_legal_helper->check_share_checkout();
     136        if ( $basic_checks ) {
     137            $this->check_activation();
     138
     139            $this->check_alma_keys( false );
     140            $this->add_filters();
     141            $this->add_actions();
     142            $this->init_admin_form();
     143            $this->check_legal_helper->check_share_checkout();
     144        }
    140145    }
    141146
  • alma-gateway-for-woocommerce/tags/4.2.1/includes/helpers/class-alma-migration-helper.php

    r2916821 r2917432  
    5454    public function update() {
    5555        $db_version = get_option( 'alma_version' );
    56 
    5756        if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) {
    5857            return;
     
    9089     */
    9190    protected function migrate_keys() {
    92         $old_settings = get_option( 'woocommerce_alma_settings' );
     91        try {
     92            $old_settings = get_option( 'woocommerce_alma_settings' );
    9393
    94         if ( $old_settings ) {
    95             update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
    96         }
     94            if ( $old_settings ) {
     95                update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
     96            }
    9797
    98         $settings    = get_option( Alma_Settings::OPTIONS_KEY );
    99         $has_changed = false;
     98            $settings = get_option( Alma_Settings::OPTIONS_KEY );
    10099
    101         try {
     100            $has_changed = false;
     101
    102102            if (
    103103                ! empty( $settings['live_api_key'] )
     
    123123
    124124            // Upgrade to 4.
    125             $gateway = new Alma_Payment_Gateway();
     125            $gateway = new Alma_Payment_Gateway( false );
    126126
    127127            $gateway->manage_credentials( true );
  • alma-gateway-for-woocommerce/tags/4.2.1/readme.txt

    r2916821 r2917432  
    66Tested up to: 6.2.2
    77Requires PHP: 5.6
    8 Stable tag: 4.2.0
     8Stable tag: 4.2.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6666
    6767== Changelog ==
     68
     69= 4.2.1 =
     70* hotfix: Plugin update when the gateway is disabled
    6871
    6972= 4.2.0 =
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/alma-gateway-for-woocommerce.php

    r2916821 r2917432  
    44 * Plugin URI: https://docs.almapay.com/docs/woocommerce
    55 * Description: Install Alma and boost your sales! It's simple and guaranteed, your cash flow is secured. 0 commitment, 0 subscription, 0 risk.
    6  * Version: 4.2.0
     6 * Version: 4.2.1
    77 * Author: Alma
    88 * Author URI: https://almapay.com
     
    3939
    4040if ( ! defined( 'ALMA_VERSION' ) ) {
    41     define( 'ALMA_VERSION', '4.2.0' );
     41    define( 'ALMA_VERSION', '4.2.1' );
    4242}
    4343if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) {
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/includes/class-alma-payment-gateway.php

    r2916821 r2917432  
    113113
    114114    /**
    115      * Constructor for the gateway.
    116      */
    117     public function __construct() {
     115     * Constructor.
     116     *
     117     * @param bool $basic_checks Do we want to check the basic configuration.
     118     * @throws Alma_No_Credentials_Exception No credentials exception.
     119     */
     120    public function __construct( $basic_checks = true ) {
    118121        $this->id                 = Alma_Constants_Helper::GATEWAY_ID;
    119122        $this->has_fields         = true;
     
    131134        $this->tool_helper        = new Alma_Tools_Helper();
    132135
    133         $this->check_activation();
    134 
    135         $this->check_alma_keys( false );
    136         $this->add_filters();
    137         $this->add_actions();
    138         $this->init_admin_form();
    139         $this->check_legal_helper->check_share_checkout();
     136        if ( $basic_checks ) {
     137            $this->check_activation();
     138
     139            $this->check_alma_keys( false );
     140            $this->add_filters();
     141            $this->add_actions();
     142            $this->init_admin_form();
     143            $this->check_legal_helper->check_share_checkout();
     144        }
    140145    }
    141146
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/includes/helpers/class-alma-migration-helper.php

    r2916821 r2917432  
    5454    public function update() {
    5555        $db_version = get_option( 'alma_version' );
    56 
    5756        if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) {
    5857            return;
     
    9089     */
    9190    protected function migrate_keys() {
    92         $old_settings = get_option( 'woocommerce_alma_settings' );
     91        try {
     92            $old_settings = get_option( 'woocommerce_alma_settings' );
    9393
    94         if ( $old_settings ) {
    95             update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
    96         }
     94            if ( $old_settings ) {
     95                update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
     96            }
    9797
    98         $settings    = get_option( Alma_Settings::OPTIONS_KEY );
    99         $has_changed = false;
     98            $settings = get_option( Alma_Settings::OPTIONS_KEY );
    10099
    101         try {
     100            $has_changed = false;
     101
    102102            if (
    103103                ! empty( $settings['live_api_key'] )
     
    123123
    124124            // Upgrade to 4.
    125             $gateway = new Alma_Payment_Gateway();
     125            $gateway = new Alma_Payment_Gateway( false );
    126126
    127127            $gateway->manage_credentials( true );
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/readme.txt

    r2916821 r2917432  
    66Tested up to: 6.2.2
    77Requires PHP: 5.6
    8 Stable tag: 4.2.0
     8Stable tag: 4.2.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6666
    6767== Changelog ==
     68
     69= 4.2.1 =
     70* hotfix: Plugin update when the gateway is disabled
    6871
    6972= 4.2.0 =
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/autoload.php

    r2916821 r2917432  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();
     25return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader();
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/composer/autoload_real.php

    r2916821 r2917432  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2
     5class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/composer/autoload_static.php

    r2916821 r2917432  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2
     7class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;
     43            $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4;
     44            $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4;
     45            $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap;
    4646
    4747        }, null, ClassLoader::class);
  • alma-gateway-for-woocommerce/tags/4.2.1/vendor/autoload.php

    r2916821 r2917432  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();
     25return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader();
  • alma-gateway-for-woocommerce/tags/4.2.1/vendor/composer/autoload_real.php

    r2916821 r2917432  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2
     5class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • alma-gateway-for-woocommerce/tags/4.2.1/vendor/composer/autoload_static.php

    r2916821 r2917432  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2
     7class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;
     43            $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4;
     44            $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4;
     45            $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap;
    4646
    4747        }, null, ClassLoader::class);
  • alma-gateway-for-woocommerce/trunk/alma-gateway-for-woocommerce.php

    r2916821 r2917432  
    44 * Plugin URI: https://docs.almapay.com/docs/woocommerce
    55 * Description: Install Alma and boost your sales! It's simple and guaranteed, your cash flow is secured. 0 commitment, 0 subscription, 0 risk.
    6  * Version: 4.2.0
     6 * Version: 4.2.1
    77 * Author: Alma
    88 * Author URI: https://almapay.com
     
    3939
    4040if ( ! defined( 'ALMA_VERSION' ) ) {
    41     define( 'ALMA_VERSION', '4.2.0' );
     41    define( 'ALMA_VERSION', '4.2.1' );
    4242}
    4343if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) {
  • alma-gateway-for-woocommerce/trunk/includes/class-alma-payment-gateway.php

    r2916821 r2917432  
    113113
    114114    /**
    115      * Constructor for the gateway.
    116      */
    117     public function __construct() {
     115     * Constructor.
     116     *
     117     * @param bool $basic_checks Do we want to check the basic configuration.
     118     * @throws Alma_No_Credentials_Exception No credentials exception.
     119     */
     120    public function __construct( $basic_checks = true ) {
    118121        $this->id                 = Alma_Constants_Helper::GATEWAY_ID;
    119122        $this->has_fields         = true;
     
    131134        $this->tool_helper        = new Alma_Tools_Helper();
    132135
    133         $this->check_activation();
    134 
    135         $this->check_alma_keys( false );
    136         $this->add_filters();
    137         $this->add_actions();
    138         $this->init_admin_form();
    139         $this->check_legal_helper->check_share_checkout();
     136        if ( $basic_checks ) {
     137            $this->check_activation();
     138
     139            $this->check_alma_keys( false );
     140            $this->add_filters();
     141            $this->add_actions();
     142            $this->init_admin_form();
     143            $this->check_legal_helper->check_share_checkout();
     144        }
    140145    }
    141146
  • alma-gateway-for-woocommerce/trunk/includes/helpers/class-alma-migration-helper.php

    r2916821 r2917432  
    5454    public function update() {
    5555        $db_version = get_option( 'alma_version' );
    56 
    5756        if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) {
    5857            return;
     
    9089     */
    9190    protected function migrate_keys() {
    92         $old_settings = get_option( 'woocommerce_alma_settings' );
     91        try {
     92            $old_settings = get_option( 'woocommerce_alma_settings' );
    9393
    94         if ( $old_settings ) {
    95             update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
    96         }
     94            if ( $old_settings ) {
     95                update_option( Alma_Settings::OPTIONS_KEY, $old_settings );
     96            }
    9797
    98         $settings    = get_option( Alma_Settings::OPTIONS_KEY );
    99         $has_changed = false;
     98            $settings = get_option( Alma_Settings::OPTIONS_KEY );
    10099
    101         try {
     100            $has_changed = false;
     101
    102102            if (
    103103                ! empty( $settings['live_api_key'] )
     
    123123
    124124            // Upgrade to 4.
    125             $gateway = new Alma_Payment_Gateway();
     125            $gateway = new Alma_Payment_Gateway( false );
    126126
    127127            $gateway->manage_credentials( true );
  • alma-gateway-for-woocommerce/trunk/readme.txt

    r2916821 r2917432  
    66Tested up to: 6.2.2
    77Requires PHP: 5.6
    8 Stable tag: 4.2.0
     8Stable tag: 4.2.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6666
    6767== Changelog ==
     68
     69= 4.2.1 =
     70* hotfix: Plugin update when the gateway is disabled
    6871
    6972= 4.2.0 =
  • alma-gateway-for-woocommerce/trunk/vendor/autoload.php

    r2916821 r2917432  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();
     25return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader();
  • alma-gateway-for-woocommerce/trunk/vendor/composer/autoload_real.php

    r2916821 r2917432  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2
     5class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • alma-gateway-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r2916821 r2917432  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2
     7class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    4141    {
    4242        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInit890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;
     43            $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4;
     44            $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4;
     45            $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap;
    4646
    4747        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.