Plugin Directory

Changeset 3240532


Ignore:
Timestamp:
02/14/2025 10:06:32 AM (14 months ago)
Author:
thegeneration
Message:

Tagging version 3.2.2

Location:
svea-checkout-for-woocommerce
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • svea-checkout-for-woocommerce/tags/3.2.2/inc/WC_Gateway_Svea_Checkout.php

    r3219490 r3240532  
    379379            'ACCOUNTCREDIT'    => esc_html__( 'Account Credit', 'svea-checkout-for-woocommerce' ),
    380380            'TRUSTLY'          => esc_html__( 'Trustly', 'svea-checkout-for-woocommerce' ),
     381            'DIRECTBANK'       => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
    381382            'BANKAXESS'        => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
    382383            'DBAKTIAFI'        => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
  • svea-checkout-for-woocommerce/tags/3.2.2/inc/Webhook_Handler.php

    r3222994 r3240532  
    385385                (
    386386                    isset( $pa_order['OrderStatus'] ) &&
    387                     strtoupper( $pa_order['OrderStatus'] ) === 'CANCELLED'
     387                    in_array( strtoupper( $pa_order['OrderStatus'] ), [ 'CANCELLED', 'FAILED' ], true )
    388388                )
    389389                ||
     
    395395        ) {
    396396            sleep( 2 );
    397             $this->gateway::log( sprintf( 'Order is pending or cancelled, retrying order #%s to make sure it\'s not a old one', $this->svea_order_id ) );
     397            $this->gateway::log( sprintf( 'Order is pending, failed or cancelled, retrying order #%s to make sure it\'s not a old one', $this->svea_order_id ) );
    398398            $pa_order = $payment_admin->get( $this->svea_order_id );
    399399        }
  • svea-checkout-for-woocommerce/tags/3.2.2/readme.txt

    r3222994 r3240532  
    1010License: Apache 2.0
    1111License URI: https://www.apache.org/licenses/LICENSE-2.0
    12 Stable tag: 3.2.1
     12Stable tag: 3.2.2
    1313
    1414Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout!
     
    8686== Upgrade Notice ==
    8787
     88= 3.2.2 =
     893.2.2 is a patch release
     90
    8891= 3.2.1 =
    89923.2.1 is a patch release
     
    364367
    365368== Changelog ==
     369
     370= 3.2.2 2025-02-14 =
     371- Expanded previous fix with check if order is failed in Payment Admin due to a race condition in Svea.
     372- Added "Direct bank" payment method which Trustly payments falls under
    366373
    367374= 3.2.1 2025-01-15 =
  • svea-checkout-for-woocommerce/tags/3.2.2/svea-checkout-for-woocommerce.php

    r3222994 r3240532  
    1414 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/
    1515 * Description: Process payments in WooCommerce via Svea Checkout.
    16  * Version: 3.2.1
     16 * Version: 3.2.2
    1717 * Requires Plugins: woocommerce
    1818 * Author: The Generation AB
     
    4747         * Version of plugin
    4848         */
    49         const VERSION = '3.2.1';
     49        const VERSION = '3.2.2';
    5050
    5151        /**
  • svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/InstalledVersions.php

    r3206818 r3240532  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        self::$installedByVendor = array();
     317
     318        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     319        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     320        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     321        // all installed packages for example
     322        self::$installedIsLocalDir = false;
    312323    }
    313324
     
    326337
    327338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    328340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    329342                if (isset(self::$installedByVendor[$vendorDir])) {
    330343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    334347                    self::$installedByVendor[$vendorDir] = $required;
    335348                    $installed[] = $required;
    336                     if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     349                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
    337350                        self::$installed = $required;
    338                         $copiedLocalDir = true;
     351                        self::$installedIsLocalDir = true;
    339352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    340356                }
    341357            }
  • svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/autoload_psr4.php

    r3088414 r3240532  
    1010    'Svea\\Instore\\' => array($vendorDir . '/sveaekonomi/php-instore/lib'),
    1111    'Svea\\Checkout\\' => array($vendorDir . '/sveaekonomi/checkout/src'),
    12     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     12    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    1313    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    1414    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
  • svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/autoload_static.php

    r3203722 r3240532  
    4848        'Psr\\Http\\Message\\' =>
    4949        array (
    50             0 => __DIR__ . '/..' . '/psr/http-message/src',
    51             1 => __DIR__ . '/..' . '/psr/http-factory/src',
     50            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     51            1 => __DIR__ . '/..' . '/psr/http-message/src',
    5252        ),
    5353        'Psr\\Http\\Client\\' =>
  • svea-checkout-for-woocommerce/trunk/inc/WC_Gateway_Svea_Checkout.php

    r3219490 r3240532  
    379379            'ACCOUNTCREDIT'    => esc_html__( 'Account Credit', 'svea-checkout-for-woocommerce' ),
    380380            'TRUSTLY'          => esc_html__( 'Trustly', 'svea-checkout-for-woocommerce' ),
     381            'DIRECTBANK'       => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
    381382            'BANKAXESS'        => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
    382383            'DBAKTIAFI'        => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ),
  • svea-checkout-for-woocommerce/trunk/inc/Webhook_Handler.php

    r3222994 r3240532  
    385385                (
    386386                    isset( $pa_order['OrderStatus'] ) &&
    387                     strtoupper( $pa_order['OrderStatus'] ) === 'CANCELLED'
     387                    in_array( strtoupper( $pa_order['OrderStatus'] ), [ 'CANCELLED', 'FAILED' ], true )
    388388                )
    389389                ||
     
    395395        ) {
    396396            sleep( 2 );
    397             $this->gateway::log( sprintf( 'Order is pending or cancelled, retrying order #%s to make sure it\'s not a old one', $this->svea_order_id ) );
     397            $this->gateway::log( sprintf( 'Order is pending, failed or cancelled, retrying order #%s to make sure it\'s not a old one', $this->svea_order_id ) );
    398398            $pa_order = $payment_admin->get( $this->svea_order_id );
    399399        }
  • svea-checkout-for-woocommerce/trunk/readme.txt

    r3222994 r3240532  
    1010License: Apache 2.0
    1111License URI: https://www.apache.org/licenses/LICENSE-2.0
    12 Stable tag: 3.2.1
     12Stable tag: 3.2.2
    1313
    1414Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout!
     
    8686== Upgrade Notice ==
    8787
     88= 3.2.2 =
     893.2.2 is a patch release
     90
    8891= 3.2.1 =
    89923.2.1 is a patch release
     
    364367
    365368== Changelog ==
     369
     370= 3.2.2 2025-02-14 =
     371- Expanded previous fix with check if order is failed in Payment Admin due to a race condition in Svea.
     372- Added "Direct bank" payment method which Trustly payments falls under
    366373
    367374= 3.2.1 2025-01-15 =
  • svea-checkout-for-woocommerce/trunk/svea-checkout-for-woocommerce.php

    r3222994 r3240532  
    1414 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/
    1515 * Description: Process payments in WooCommerce via Svea Checkout.
    16  * Version: 3.2.1
     16 * Version: 3.2.2
    1717 * Requires Plugins: woocommerce
    1818 * Author: The Generation AB
     
    4747         * Version of plugin
    4848         */
    49         const VERSION = '3.2.1';
     49        const VERSION = '3.2.2';
    5050
    5151        /**
  • svea-checkout-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r3206818 r3240532  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        self::$installedByVendor = array();
     317
     318        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     319        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     320        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     321        // all installed packages for example
     322        self::$installedIsLocalDir = false;
    312323    }
    313324
     
    326337
    327338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    328340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    329342                if (isset(self::$installedByVendor[$vendorDir])) {
    330343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    334347                    self::$installedByVendor[$vendorDir] = $required;
    335348                    $installed[] = $required;
    336                     if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     349                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
    337350                        self::$installed = $required;
    338                         $copiedLocalDir = true;
     351                        self::$installedIsLocalDir = true;
    339352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    340356                }
    341357            }
  • svea-checkout-for-woocommerce/trunk/vendor/composer/autoload_psr4.php

    r3088414 r3240532  
    1010    'Svea\\Instore\\' => array($vendorDir . '/sveaekonomi/php-instore/lib'),
    1111    'Svea\\Checkout\\' => array($vendorDir . '/sveaekonomi/checkout/src'),
    12     'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
     12    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
    1313    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
    1414    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
  • svea-checkout-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r3203722 r3240532  
    4848        'Psr\\Http\\Message\\' =>
    4949        array (
    50             0 => __DIR__ . '/..' . '/psr/http-message/src',
    51             1 => __DIR__ . '/..' . '/psr/http-factory/src',
     50            0 => __DIR__ . '/..' . '/psr/http-factory/src',
     51            1 => __DIR__ . '/..' . '/psr/http-message/src',
    5252        ),
    5353        'Psr\\Http\\Client\\' =>
Note: See TracChangeset for help on using the changeset viewer.