Changeset 3240532
- Timestamp:
- 02/14/2025 10:06:32 AM (14 months ago)
- Location:
- svea-checkout-for-woocommerce
- Files:
-
- 14 edited
- 1 copied
-
tags/3.2.2 (copied) (copied from svea-checkout-for-woocommerce/trunk)
-
tags/3.2.2/inc/WC_Gateway_Svea_Checkout.php (modified) (1 diff)
-
tags/3.2.2/inc/Webhook_Handler.php (modified) (2 diffs)
-
tags/3.2.2/readme.txt (modified) (3 diffs)
-
tags/3.2.2/svea-checkout-for-woocommerce.php (modified) (2 diffs)
-
tags/3.2.2/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/3.2.2/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/3.2.2/vendor/composer/autoload_static.php (modified) (1 diff)
-
trunk/inc/WC_Gateway_Svea_Checkout.php (modified) (1 diff)
-
trunk/inc/Webhook_Handler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/svea-checkout-for-woocommerce.php (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
svea-checkout-for-woocommerce/tags/3.2.2/inc/WC_Gateway_Svea_Checkout.php
r3219490 r3240532 379 379 'ACCOUNTCREDIT' => esc_html__( 'Account Credit', 'svea-checkout-for-woocommerce' ), 380 380 'TRUSTLY' => esc_html__( 'Trustly', 'svea-checkout-for-woocommerce' ), 381 'DIRECTBANK' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), 381 382 'BANKAXESS' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), 382 383 'DBAKTIAFI' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), -
svea-checkout-for-woocommerce/tags/3.2.2/inc/Webhook_Handler.php
r3222994 r3240532 385 385 ( 386 386 isset( $pa_order['OrderStatus'] ) && 387 strtoupper( $pa_order['OrderStatus'] ) === 'CANCELLED'387 in_array( strtoupper( $pa_order['OrderStatus'] ), [ 'CANCELLED', 'FAILED' ], true ) 388 388 ) 389 389 || … … 395 395 ) { 396 396 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 ) ); 398 398 $pa_order = $payment_admin->get( $this->svea_order_id ); 399 399 } -
svea-checkout-for-woocommerce/tags/3.2.2/readme.txt
r3222994 r3240532 10 10 License: Apache 2.0 11 11 License URI: https://www.apache.org/licenses/LICENSE-2.0 12 Stable tag: 3.2. 112 Stable tag: 3.2.2 13 13 14 14 Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout! … … 86 86 == Upgrade Notice == 87 87 88 = 3.2.2 = 89 3.2.2 is a patch release 90 88 91 = 3.2.1 = 89 92 3.2.1 is a patch release … … 364 367 365 368 == 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 366 373 367 374 = 3.2.1 2025-01-15 = -
svea-checkout-for-woocommerce/tags/3.2.2/svea-checkout-for-woocommerce.php
r3222994 r3240532 14 14 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/ 15 15 * Description: Process payments in WooCommerce via Svea Checkout. 16 * Version: 3.2. 116 * Version: 3.2.2 17 17 * Requires Plugins: woocommerce 18 18 * Author: The Generation AB … … 47 47 * Version of plugin 48 48 */ 49 const VERSION = '3.2. 1';49 const VERSION = '3.2.2'; 50 50 51 51 /** -
svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/InstalledVersions.php
r3206818 r3240532 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 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; 312 323 } 313 324 … … 326 337 327 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 328 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 329 342 if (isset(self::$installedByVendor[$vendorDir])) { 330 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 334 347 self::$installedByVendor[$vendorDir] = $required; 335 348 $installed[] = $required; 336 if (s trtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 337 350 self::$installed = $required; 338 $copiedLocalDir = true;351 self::$installedIsLocalDir = true; 339 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 340 356 } 341 357 } -
svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/autoload_psr4.php
r3088414 r3240532 10 10 'Svea\\Instore\\' => array($vendorDir . '/sveaekonomi/php-instore/lib'), 11 11 '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'), 13 13 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 14 14 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), -
svea-checkout-for-woocommerce/tags/3.2.2/vendor/composer/autoload_static.php
r3203722 r3240532 48 48 'Psr\\Http\\Message\\' => 49 49 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', 52 52 ), 53 53 'Psr\\Http\\Client\\' => -
svea-checkout-for-woocommerce/trunk/inc/WC_Gateway_Svea_Checkout.php
r3219490 r3240532 379 379 'ACCOUNTCREDIT' => esc_html__( 'Account Credit', 'svea-checkout-for-woocommerce' ), 380 380 'TRUSTLY' => esc_html__( 'Trustly', 'svea-checkout-for-woocommerce' ), 381 'DIRECTBANK' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), 381 382 'BANKAXESS' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), 382 383 'DBAKTIAFI' => esc_html__( 'Direct bank', 'svea-checkout-for-woocommerce' ), -
svea-checkout-for-woocommerce/trunk/inc/Webhook_Handler.php
r3222994 r3240532 385 385 ( 386 386 isset( $pa_order['OrderStatus'] ) && 387 strtoupper( $pa_order['OrderStatus'] ) === 'CANCELLED'387 in_array( strtoupper( $pa_order['OrderStatus'] ), [ 'CANCELLED', 'FAILED' ], true ) 388 388 ) 389 389 || … … 395 395 ) { 396 396 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 ) ); 398 398 $pa_order = $payment_admin->get( $this->svea_order_id ); 399 399 } -
svea-checkout-for-woocommerce/trunk/readme.txt
r3222994 r3240532 10 10 License: Apache 2.0 11 11 License URI: https://www.apache.org/licenses/LICENSE-2.0 12 Stable tag: 3.2. 112 Stable tag: 3.2.2 13 13 14 14 Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout! … … 86 86 == Upgrade Notice == 87 87 88 = 3.2.2 = 89 3.2.2 is a patch release 90 88 91 = 3.2.1 = 89 92 3.2.1 is a patch release … … 364 367 365 368 == 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 366 373 367 374 = 3.2.1 2025-01-15 = -
svea-checkout-for-woocommerce/trunk/svea-checkout-for-woocommerce.php
r3222994 r3240532 14 14 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/ 15 15 * Description: Process payments in WooCommerce via Svea Checkout. 16 * Version: 3.2. 116 * Version: 3.2.2 17 17 * Requires Plugins: woocommerce 18 18 * Author: The Generation AB … … 47 47 * Version of plugin 48 48 */ 49 const VERSION = '3.2. 1';49 const VERSION = '3.2.2'; 50 50 51 51 /** -
svea-checkout-for-woocommerce/trunk/vendor/composer/InstalledVersions.php
r3206818 r3240532 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 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; 312 323 } 313 324 … … 326 337 327 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 328 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 329 342 if (isset(self::$installedByVendor[$vendorDir])) { 330 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 334 347 self::$installedByVendor[$vendorDir] = $required; 335 348 $installed[] = $required; 336 if (s trtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 337 350 self::$installed = $required; 338 $copiedLocalDir = true;351 self::$installedIsLocalDir = true; 339 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 340 356 } 341 357 } -
svea-checkout-for-woocommerce/trunk/vendor/composer/autoload_psr4.php
r3088414 r3240532 10 10 'Svea\\Instore\\' => array($vendorDir . '/sveaekonomi/php-instore/lib'), 11 11 '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'), 13 13 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 14 14 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), -
svea-checkout-for-woocommerce/trunk/vendor/composer/autoload_static.php
r3203722 r3240532 48 48 'Psr\\Http\\Message\\' => 49 49 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', 52 52 ), 53 53 'Psr\\Http\\Client\\' =>
Note: See TracChangeset
for help on using the changeset viewer.