Plugin Directory

Changeset 3146437


Ignore:
Timestamp:
09/04/2024 12:23:05 PM (19 months ago)
Author:
multisafepayplugin
Message:

Update to version 6.6.1 from GitHub

Location:
multisafepay
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • multisafepay/tags/6.6.1/multisafepay.php

    r3114383 r3146437  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.6.0
     7 * Version:                 6.6.1
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1212 * License URI:             http://www.gnu.org/licenses/gpl-3.0.html
    1313 * Requires at least:       6.0
    14  * Tested up to:            6.5.5
     14 * Tested up to:            6.6.1
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         9.0.2
     16 * WC tested up to:         9.2.3
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.6.0' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.6.1' );
    3030
    3131/**
  • multisafepay/tags/6.6.1/readme.txt

    r3114383 r3146437  
    33Tags: multisafepay, payment gateway, credit cards, ideal, bnpl
    44Requires at least: 6.0
    5 Tested up to: 6.5.5
     5Tested up to: 6.6.1
    66Requires PHP: 7.3
    7 Stable tag: 6.6.0
     7Stable tag: 6.6.1
    88License: MIT
    99
     
    128128== Upgrade Notice ==
    129129
    130 = 6.6.0 =
     130= 6.6.1 =
    1311316.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences.
    132132
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.6.1 (Sep 4th, 2024) =
     147
     148### Fixed
     149+ PLGWOOS-952: Fix System Report failing because WC_API not found
     150
     151### Removed
     152+ PLGWOOS-950: Remove iDEAL issuers of the payment component
     153
    146154= Release Notes - WooCommerce 6.6.0 (Jul 8th, 2024) =
    147155
  • multisafepay/tags/6.6.1/src/PaymentMethods/Base/BasePaymentMethod.php

    r3114383 r3146437  
    247247     */
    248248    public function get_payment_method_type(): string {
     249        // Converting to direct the transaction type for iDEAL
     250        if ( $this->is_ideal_2_0() ) {
     251            return self::TRANSACTION_TYPE_DIRECT;
     252        }
     253
    249254        // Avoiding the warning when the admin is editing
    250255        // the checkout page to add the block-based checkout.
     
    352357            return false;
    353358        }
     359
     360        if ( $this->is_ideal_2_0() ) {
     361            $settings = get_option( 'woocommerce_' . $this->id . '_settings', array( 'tokenization' => 'yes' ) );
     362            if ( ! isset( $settings['tokenization'] ) ) {
     363                return true;
     364            }
     365            return 'yes' === $settings['tokenization'];
     366        }
     367
    354368        $settings = get_option( 'woocommerce_' . $this->id . '_settings', array( 'payment_component' => 'yes' ) );
    355369        if ( ! isset( $settings['payment_component'] ) ) {
     
    559573        }
    560574
    561         if ( $this->payment_method->supportsPaymentComponent() ) {
     575        if ( $this->payment_method->supportsPaymentComponent() && ! $this->is_ideal_2_0() ) {
    562576            $form_fields['payment_component'] = array(
    563577                'title'       => __( 'Payment Type', 'multisafepay' ),
     
    585599                'value'       => $this->get_option( 'tokenization', 'no' ),
    586600            );
     601
     602            if ( $this->is_ideal_2_0() ) {
     603                unset( $form_fields['tokenization']['description'] );
     604            }
    587605        }
    588606
     
    805823        return $countries->get_allowed_countries();
    806824    }
     825
     826    /**
     827     * If the API starts returning that the payment component has no fields for IDEAL,
     828     * it's because the payment component is disabled for this payment method.
     829     *
     830     * @return bool
     831     */
     832    private function is_ideal_2_0(): bool {
     833        if ( $this->payment_method->getId() !== 'IDEAL' ) {
     834            return false;
     835        }
     836
     837        $payment_method_apps = $this->payment_method->getApps();
     838        if ( false === $payment_method_apps[ PaymentMethod::PAYMENT_COMPONENT_KEY ][ PaymentMethod::PAYMENT_COMPONENT_HAS_FIELDS_KEY ] ) {
     839            return true;
     840        }
     841
     842        return false;
     843    }
    807844}
  • multisafepay/tags/6.6.1/src/Settings/SystemReport.php

    r2977382 r3146437  
    66use MultiSafepay\WooCommerce\PaymentMethods\Base\BasePaymentMethod;
    77use MultiSafepay\WooCommerce\Services\PaymentMethodService;
    8 use WC_API;
    98use WC_Countries;
    10 use MultiSafepay\WooCommerce\PaymentMethods\PaymentMethods;
    119use WC_Tax;
    1210use WP_Error;
     
    4139     */
    4240    private function get_woocommerce_system_status_report() {
    43         $wc_api = new WC_API();
    44         $report = $wc_api->get_endpoint_data( '/wc/v3/system_status' );
    45         return $report;
     41        if ( class_exists( \Automattic\WooCommerce\Utilities\RestApiUtil::class ) ) {
     42            return wc_get_container()->get( \Automattic\WooCommerce\Utilities\RestApiUtil::class )->get_endpoint_data( '/wc/v3/system_status' );
     43        }
     44
     45        if ( class_exists( \WC_API::class ) ) {
     46            $wc_api = new \WC_API();
     47            $report = $wc_api->get_endpoint_data( '/wc/v3/system_status' );
     48            return $report;
     49        }
     50
     51        return array();
    4652    }
    4753
     
    5258     */
    5359    public function get_multisafepay_system_status_report() {
     60        if ( empty( $this->report ) ) {
     61            return array();
     62        }
     63
    5464        $status_report = array(
    5565            'wordpress_environment'          => $this->get_system_report_wordpress_environment(),
  • multisafepay/tags/6.6.1/vendor/autoload.php

    r3114383 r3146437  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8::getLoader();
     25return ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772::getLoader();
  • multisafepay/tags/6.6.1/vendor/composer/autoload_real.php

    r3114383 r3146437  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8
     5class ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • multisafepay/tags/6.6.1/vendor/composer/autoload_static.php

    r3114383 r3146437  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8
     7class ComposerStaticInit68721a43f2665cbca96d07cf1de6e772
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    6363    {
    6464        return \Closure::bind(function () use ($loader) {
    65             $loader->prefixLengthsPsr4 = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$prefixLengthsPsr4;
    66             $loader->prefixDirsPsr4 = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$prefixDirsPsr4;
    67             $loader->classMap = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$classMap;
     65            $loader->prefixLengthsPsr4 = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$prefixLengthsPsr4;
     66            $loader->prefixDirsPsr4 = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$prefixDirsPsr4;
     67            $loader->classMap = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$classMap;
    6868
    6969        }, null, ClassLoader::class);
  • multisafepay/tags/6.6.1/vendor/composer/installed.php

    r3114383 r3146437  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.6.0',
    5         'version' => '6.6.0.0',
     4        'pretty_version' => '6.6.1',
     5        'version' => '6.6.1.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.6.0',
    24             'version' => '6.6.0.0',
     23            'pretty_version' => '6.6.1',
     24            'version' => '6.6.1.0',
    2525            'reference' => null,
    2626            'type' => 'wordpress-plugin',
  • multisafepay/trunk/multisafepay.php

    r3114383 r3146437  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.6.0
     7 * Version:                 6.6.1
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1212 * License URI:             http://www.gnu.org/licenses/gpl-3.0.html
    1313 * Requires at least:       6.0
    14  * Tested up to:            6.5.5
     14 * Tested up to:            6.6.1
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         9.0.2
     16 * WC tested up to:         9.2.3
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.6.0' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.6.1' );
    3030
    3131/**
  • multisafepay/trunk/readme.txt

    r3114383 r3146437  
    33Tags: multisafepay, payment gateway, credit cards, ideal, bnpl
    44Requires at least: 6.0
    5 Tested up to: 6.5.5
     5Tested up to: 6.6.1
    66Requires PHP: 7.3
    7 Stable tag: 6.6.0
     7Stable tag: 6.6.1
    88License: MIT
    99
     
    128128== Upgrade Notice ==
    129129
    130 = 6.6.0 =
     130= 6.6.1 =
    1311316.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences.
    132132
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.6.1 (Sep 4th, 2024) =
     147
     148### Fixed
     149+ PLGWOOS-952: Fix System Report failing because WC_API not found
     150
     151### Removed
     152+ PLGWOOS-950: Remove iDEAL issuers of the payment component
     153
    146154= Release Notes - WooCommerce 6.6.0 (Jul 8th, 2024) =
    147155
  • multisafepay/trunk/src/PaymentMethods/Base/BasePaymentMethod.php

    r3114383 r3146437  
    247247     */
    248248    public function get_payment_method_type(): string {
     249        // Converting to direct the transaction type for iDEAL
     250        if ( $this->is_ideal_2_0() ) {
     251            return self::TRANSACTION_TYPE_DIRECT;
     252        }
     253
    249254        // Avoiding the warning when the admin is editing
    250255        // the checkout page to add the block-based checkout.
     
    352357            return false;
    353358        }
     359
     360        if ( $this->is_ideal_2_0() ) {
     361            $settings = get_option( 'woocommerce_' . $this->id . '_settings', array( 'tokenization' => 'yes' ) );
     362            if ( ! isset( $settings['tokenization'] ) ) {
     363                return true;
     364            }
     365            return 'yes' === $settings['tokenization'];
     366        }
     367
    354368        $settings = get_option( 'woocommerce_' . $this->id . '_settings', array( 'payment_component' => 'yes' ) );
    355369        if ( ! isset( $settings['payment_component'] ) ) {
     
    559573        }
    560574
    561         if ( $this->payment_method->supportsPaymentComponent() ) {
     575        if ( $this->payment_method->supportsPaymentComponent() && ! $this->is_ideal_2_0() ) {
    562576            $form_fields['payment_component'] = array(
    563577                'title'       => __( 'Payment Type', 'multisafepay' ),
     
    585599                'value'       => $this->get_option( 'tokenization', 'no' ),
    586600            );
     601
     602            if ( $this->is_ideal_2_0() ) {
     603                unset( $form_fields['tokenization']['description'] );
     604            }
    587605        }
    588606
     
    805823        return $countries->get_allowed_countries();
    806824    }
     825
     826    /**
     827     * If the API starts returning that the payment component has no fields for IDEAL,
     828     * it's because the payment component is disabled for this payment method.
     829     *
     830     * @return bool
     831     */
     832    private function is_ideal_2_0(): bool {
     833        if ( $this->payment_method->getId() !== 'IDEAL' ) {
     834            return false;
     835        }
     836
     837        $payment_method_apps = $this->payment_method->getApps();
     838        if ( false === $payment_method_apps[ PaymentMethod::PAYMENT_COMPONENT_KEY ][ PaymentMethod::PAYMENT_COMPONENT_HAS_FIELDS_KEY ] ) {
     839            return true;
     840        }
     841
     842        return false;
     843    }
    807844}
  • multisafepay/trunk/src/Settings/SystemReport.php

    r2977382 r3146437  
    66use MultiSafepay\WooCommerce\PaymentMethods\Base\BasePaymentMethod;
    77use MultiSafepay\WooCommerce\Services\PaymentMethodService;
    8 use WC_API;
    98use WC_Countries;
    10 use MultiSafepay\WooCommerce\PaymentMethods\PaymentMethods;
    119use WC_Tax;
    1210use WP_Error;
     
    4139     */
    4240    private function get_woocommerce_system_status_report() {
    43         $wc_api = new WC_API();
    44         $report = $wc_api->get_endpoint_data( '/wc/v3/system_status' );
    45         return $report;
     41        if ( class_exists( \Automattic\WooCommerce\Utilities\RestApiUtil::class ) ) {
     42            return wc_get_container()->get( \Automattic\WooCommerce\Utilities\RestApiUtil::class )->get_endpoint_data( '/wc/v3/system_status' );
     43        }
     44
     45        if ( class_exists( \WC_API::class ) ) {
     46            $wc_api = new \WC_API();
     47            $report = $wc_api->get_endpoint_data( '/wc/v3/system_status' );
     48            return $report;
     49        }
     50
     51        return array();
    4652    }
    4753
     
    5258     */
    5359    public function get_multisafepay_system_status_report() {
     60        if ( empty( $this->report ) ) {
     61            return array();
     62        }
     63
    5464        $status_report = array(
    5565            'wordpress_environment'          => $this->get_system_report_wordpress_environment(),
  • multisafepay/trunk/vendor/autoload.php

    r3114383 r3146437  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8::getLoader();
     25return ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772::getLoader();
  • multisafepay/trunk/vendor/composer/autoload_real.php

    r3114383 r3146437  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8
     5class ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitdbc0eb47ba0f8cbc67eba2344d97c2f8', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit68721a43f2665cbca96d07cf1de6e772', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • multisafepay/trunk/vendor/composer/autoload_static.php

    r3114383 r3146437  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8
     7class ComposerStaticInit68721a43f2665cbca96d07cf1de6e772
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    6363    {
    6464        return \Closure::bind(function () use ($loader) {
    65             $loader->prefixLengthsPsr4 = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$prefixLengthsPsr4;
    66             $loader->prefixDirsPsr4 = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$prefixDirsPsr4;
    67             $loader->classMap = ComposerStaticInitdbc0eb47ba0f8cbc67eba2344d97c2f8::$classMap;
     65            $loader->prefixLengthsPsr4 = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$prefixLengthsPsr4;
     66            $loader->prefixDirsPsr4 = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$prefixDirsPsr4;
     67            $loader->classMap = ComposerStaticInit68721a43f2665cbca96d07cf1de6e772::$classMap;
    6868
    6969        }, null, ClassLoader::class);
  • multisafepay/trunk/vendor/composer/installed.php

    r3114383 r3146437  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.6.0',
    5         'version' => '6.6.0.0',
     4        'pretty_version' => '6.6.1',
     5        'version' => '6.6.1.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.6.0',
    24             'version' => '6.6.0.0',
     23            'pretty_version' => '6.6.1',
     24            'version' => '6.6.1.0',
    2525            'reference' => null,
    2626            'type' => 'wordpress-plugin',
Note: See TracChangeset for help on using the changeset viewer.