Changeset 2917432
- Timestamp:
- 05/25/2023 03:45:12 PM (23 months ago)
- 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 4 4 * Plugin URI: https://docs.almapay.com/docs/woocommerce 5 5 * 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. 06 * Version: 4.2.1 7 7 * Author: Alma 8 8 * Author URI: https://almapay.com … … 39 39 40 40 if ( ! defined( 'ALMA_VERSION' ) ) { 41 define( 'ALMA_VERSION', '4.2. 0' );41 define( 'ALMA_VERSION', '4.2.1' ); 42 42 } 43 43 if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) { -
alma-gateway-for-woocommerce/tags/4.2.1/includes/class-alma-payment-gateway.php
r2916821 r2917432 113 113 114 114 /** 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 ) { 118 121 $this->id = Alma_Constants_Helper::GATEWAY_ID; 119 122 $this->has_fields = true; … … 131 134 $this->tool_helper = new Alma_Tools_Helper(); 132 135 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 } 140 145 } 141 146 -
alma-gateway-for-woocommerce/tags/4.2.1/includes/helpers/class-alma-migration-helper.php
r2916821 r2917432 54 54 public function update() { 55 55 $db_version = get_option( 'alma_version' ); 56 57 56 if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) { 58 57 return; … … 90 89 */ 91 90 protected function migrate_keys() { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 91 try { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 93 93 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 } 97 97 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 99 $has_changed = false; 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 100 99 101 try { 100 $has_changed = false; 101 102 102 if ( 103 103 ! empty( $settings['live_api_key'] ) … … 123 123 124 124 // Upgrade to 4. 125 $gateway = new Alma_Payment_Gateway( );125 $gateway = new Alma_Payment_Gateway( false ); 126 126 127 127 $gateway->manage_credentials( true ); -
alma-gateway-for-woocommerce/tags/4.2.1/readme.txt
r2916821 r2917432 6 6 Tested up to: 6.2.2 7 7 Requires PHP: 5.6 8 Stable tag: 4.2. 08 Stable tag: 4.2.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 66 66 67 67 == Changelog == 68 69 = 4.2.1 = 70 * hotfix: Plugin update when the gateway is disabled 68 71 69 72 = 4.2.0 = -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/alma-gateway-for-woocommerce.php
r2916821 r2917432 4 4 * Plugin URI: https://docs.almapay.com/docs/woocommerce 5 5 * 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. 06 * Version: 4.2.1 7 7 * Author: Alma 8 8 * Author URI: https://almapay.com … … 39 39 40 40 if ( ! defined( 'ALMA_VERSION' ) ) { 41 define( 'ALMA_VERSION', '4.2. 0' );41 define( 'ALMA_VERSION', '4.2.1' ); 42 42 } 43 43 if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) { -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/includes/class-alma-payment-gateway.php
r2916821 r2917432 113 113 114 114 /** 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 ) { 118 121 $this->id = Alma_Constants_Helper::GATEWAY_ID; 119 122 $this->has_fields = true; … … 131 134 $this->tool_helper = new Alma_Tools_Helper(); 132 135 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 } 140 145 } 141 146 -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/includes/helpers/class-alma-migration-helper.php
r2916821 r2917432 54 54 public function update() { 55 55 $db_version = get_option( 'alma_version' ); 56 57 56 if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) { 58 57 return; … … 90 89 */ 91 90 protected function migrate_keys() { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 91 try { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 93 93 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 } 97 97 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 99 $has_changed = false; 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 100 99 101 try { 100 $has_changed = false; 101 102 102 if ( 103 103 ! empty( $settings['live_api_key'] ) … … 123 123 124 124 // Upgrade to 4. 125 $gateway = new Alma_Payment_Gateway( );125 $gateway = new Alma_Payment_Gateway( false ); 126 126 127 127 $gateway->manage_credentials( true ); -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/readme.txt
r2916821 r2917432 6 6 Tested up to: 6.2.2 7 7 Requires PHP: 5.6 8 Stable tag: 4.2. 08 Stable tag: 4.2.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 66 66 67 67 == Changelog == 68 69 = 4.2.1 = 70 * hotfix: Plugin update when the gateway is disabled 68 71 69 72 = 4.2.0 = -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/autoload.php
r2916821 r2917432 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();25 return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader(); -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/composer/autoload_real.php
r2916821 r2917432 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f25 class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
alma-gateway-for-woocommerce/tags/4.2.1/trunk/vendor/composer/autoload_static.php
r2916821 r2917432 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f27 class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->prefixLengthsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;44 $loader->prefixDirsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;45 $loader->classMap = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;43 $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4; 44 $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4; 45 $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap; 46 46 47 47 }, null, ClassLoader::class); -
alma-gateway-for-woocommerce/tags/4.2.1/vendor/autoload.php
r2916821 r2917432 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();25 return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader(); -
alma-gateway-for-woocommerce/tags/4.2.1/vendor/composer/autoload_real.php
r2916821 r2917432 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f25 class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
alma-gateway-for-woocommerce/tags/4.2.1/vendor/composer/autoload_static.php
r2916821 r2917432 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f27 class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->prefixLengthsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;44 $loader->prefixDirsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;45 $loader->classMap = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;43 $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4; 44 $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4; 45 $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap; 46 46 47 47 }, null, ClassLoader::class); -
alma-gateway-for-woocommerce/trunk/alma-gateway-for-woocommerce.php
r2916821 r2917432 4 4 * Plugin URI: https://docs.almapay.com/docs/woocommerce 5 5 * 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. 06 * Version: 4.2.1 7 7 * Author: Alma 8 8 * Author URI: https://almapay.com … … 39 39 40 40 if ( ! defined( 'ALMA_VERSION' ) ) { 41 define( 'ALMA_VERSION', '4.2. 0' );41 define( 'ALMA_VERSION', '4.2.1' ); 42 42 } 43 43 if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) { -
alma-gateway-for-woocommerce/trunk/includes/class-alma-payment-gateway.php
r2916821 r2917432 113 113 114 114 /** 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 ) { 118 121 $this->id = Alma_Constants_Helper::GATEWAY_ID; 119 122 $this->has_fields = true; … … 131 134 $this->tool_helper = new Alma_Tools_Helper(); 132 135 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 } 140 145 } 141 146 -
alma-gateway-for-woocommerce/trunk/includes/helpers/class-alma-migration-helper.php
r2916821 r2917432 54 54 public function update() { 55 55 $db_version = get_option( 'alma_version' ); 56 57 56 if ( version_compare( ALMA_VERSION, $db_version, '=' ) ) { 58 57 return; … … 90 89 */ 91 90 protected function migrate_keys() { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 91 try { 92 $old_settings = get_option( 'woocommerce_alma_settings' ); 93 93 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 } 97 97 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 99 $has_changed = false; 98 $settings = get_option( Alma_Settings::OPTIONS_KEY ); 100 99 101 try { 100 $has_changed = false; 101 102 102 if ( 103 103 ! empty( $settings['live_api_key'] ) … … 123 123 124 124 // Upgrade to 4. 125 $gateway = new Alma_Payment_Gateway( );125 $gateway = new Alma_Payment_Gateway( false ); 126 126 127 127 $gateway->manage_credentials( true ); -
alma-gateway-for-woocommerce/trunk/readme.txt
r2916821 r2917432 6 6 Tested up to: 6.2.2 7 7 Requires PHP: 5.6 8 Stable tag: 4.2. 08 Stable tag: 4.2.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 66 66 67 67 == Changelog == 68 69 = 4.2.1 = 70 * hotfix: Plugin update when the gateway is disabled 68 71 69 72 = 4.2.0 = -
alma-gateway-for-woocommerce/trunk/vendor/autoload.php
r2916821 r2917432 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getLoader();25 return ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961::getLoader(); -
alma-gateway-for-woocommerce/trunk/vendor/composer/autoload_real.php
r2916821 r2917432 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f25 class ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 890c0c4ab3ae5f34f38ddfb58ea667f2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInita38ef08f5355e35a748c9f9f75dae961', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
alma-gateway-for-woocommerce/trunk/vendor/composer/autoload_static.php
r2916821 r2917432 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f27 class ComposerStaticInita38ef08f5355e35a748c9f9f75dae961 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->prefixLengthsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixLengthsPsr4;44 $loader->prefixDirsPsr4 = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$prefixDirsPsr4;45 $loader->classMap = ComposerStaticInit 890c0c4ab3ae5f34f38ddfb58ea667f2::$classMap;43 $loader->prefixLengthsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixLengthsPsr4; 44 $loader->prefixDirsPsr4 = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$prefixDirsPsr4; 45 $loader->classMap = ComposerStaticInita38ef08f5355e35a748c9f9f75dae961::$classMap; 46 46 47 47 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.