Skip to content

Commit

Permalink
Bump v3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
olegisk committed Jun 8, 2024
1 parent 652853b commit 3c2fc88
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 3.6.1
* Additional fixed in the background queue

Version 3.6.0
* YITH WooCommerce Gift Cards v4.11 fixes

Expand Down
14 changes: 14 additions & 0 deletions includes/class-swedbank-pay-background-queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,20 @@ protected function task( $item ) {
return false;
}

if ( ! property_exists( $gateway, 'api' ) ||
! in_array( $order->get_payment_method(), Swedbank_Pay_Plugin::PAYMENT_METHODS, true ) )
{
$this->log(
sprintf( '[ERROR]: Order #%s has not been paid with the swedbank pay. Payment method: %s',
$order->get_id(),
$order->get_payment_method()
)
);

// Remove from queue
return false;
}

// @todo Use https://developer.swedbankpay.com/checkout-v3/features/core/callback
$result = $gateway->api->finalize_payment( $order, $payment_order_id, $transaction_number );
if ( is_wp_error( $result ) ) {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This plugin provides the Swedbank Pay Payment Menu for WooCommerce.
* Requires at least: 5.3
* Tested up to: 6.4.3
* Requires PHP: 7.0
* Stable tag: 3.6.0
* Stable tag: 3.6.1
* [License: Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)

## Description
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, swedbank,
Requires at least: 5.3
Tested up to: 6.4.3
Requires PHP: 7.0
Stable tag: 3.6.0
Stable tag: 3.6.1
License: Apache License 2.0
License URI: http://www.apache.org/licenses/LICENSE-2.0

Expand Down
2 changes: 1 addition & 1 deletion swedbank-pay-payment-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://profiles.wordpress.org/swedbankpay/
* License: Apache License 2.0
* License URI: http://www.apache.org/licenses/LICENSE-2.0
* Version: 3.6.0
* Version: 3.6.1
* Text Domain: swedbank-pay-woocommerce-checkout
* Domain Path: /languages
* WC requires at least: 5.5.1
Expand Down

0 comments on commit 3c2fc88

Please sign in to comment.