From 50810e03ac41e6338c91c4cb4bd588ea3ed5ee75 Mon Sep 17 00:00:00 2001 From: Alejandro Sosa Date: Fri, 20 Sep 2024 14:58:23 +0200 Subject: [PATCH] Release 3.1.3 --- README.md | 4 +-- changelog.txt | 3 ++ docs/en/documentation.html | 2 +- ...ostfinancecheckout-admin-settings-page.php | 2 +- ...class-wc-postfinancecheckout-migration.php | 2 +- ...inancecheckout-webhook-refund-strategy.php | 1 + ...echeckout-webhook-transaction-strategy.php | 2 +- readme.txt | 12 +++---- woocommerce-postfinancecheckout.php | 34 +++++++++---------- 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 8596d6c..61df440 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc ## Documentation -* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.2/docs/en/documentation.html) +* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.3/docs/en/documentation.html) ## Support @@ -33,7 +33,7 @@ ____________________________________________________________________________ ## License -Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.1.2/LICENSE) for more information. +Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.1.3/LICENSE) for more information. ## Privacy Policy diff --git a/changelog.txt b/changelog.txt index 55ecd5d..55d14f1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -836,3 +836,6 @@ Tested against: - [Tested Against] Woocommerce 9.3.1 - [Tested Against] PHP SDK 4.5.0 += 3.1.3 - Sep 20 2024 = +- [Hotfix] Rolledback to version 3.0.12 + diff --git a/docs/en/documentation.html b/docs/en/documentation.html index 2cddf17..99c3591 100644 --- a/docs/en/documentation.html +++ b/docs/en/documentation.html @@ -23,7 +23,7 @@

Documentation

  • - + Source
  • diff --git a/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php b/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php index b9b5464..d73648f 100644 --- a/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php +++ b/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php @@ -184,7 +184,7 @@ public function get_settings() { $settings = array( array( 'links' => array( - 'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.2/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ), + 'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.3/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ), 'https://checkout.postfinance.ch/en-ch/user/signup' => esc_html__( 'Sign Up', 'woo-postfinancecheckout' ), ), 'type' => 'postfinancecheckout_links', diff --git a/includes/class-wc-postfinancecheckout-migration.php b/includes/class-wc-postfinancecheckout-migration.php index 62f0f85..ccee743 100644 --- a/includes/class-wc-postfinancecheckout-migration.php +++ b/includes/class-wc-postfinancecheckout-migration.php @@ -269,7 +269,7 @@ public static function check_version() { public static function plugin_row_meta( $links, $file ) { if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) { $row_meta = array( - 'docs' => '' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '', + 'docs' => '' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '', ); return array_merge( $links, $row_meta ); diff --git a/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-refund-strategy.php b/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-refund-strategy.php index 9d277f5..965e346 100644 --- a/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-refund-strategy.php +++ b/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-refund-strategy.php @@ -54,6 +54,7 @@ protected function load_entity( WC_PostFinanceCheckout_Webhook_Request $request * @param \PostFinanceCheckout\Sdk\Model\Refund $object The refund object. */ protected function get_order_id( $object ) { + /* @var \PostFinanceCheckout\Sdk\Model\Refund $object */ return WC_PostFinanceCheckout_Entity_Transaction_Info::load_by_transaction( $object->getTransaction()->getLinkedSpaceId(), $object->getTransaction()->getId() diff --git a/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-transaction-strategy.php b/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-transaction-strategy.php index 3c0cc03..f2e44fd 100644 --- a/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-transaction-strategy.php +++ b/includes/webhook/strategies/class-wc-postfinancecheckout-webhook-transaction-strategy.php @@ -140,7 +140,7 @@ protected function authorize( WC_PostFinanceCheckout_Webhook_Request $request, W protected function waiting( WC_PostFinanceCheckout_Webhook_Request $request, WC_Order $order ) { if ( ! $order->get_meta( '_postfinancecheckout_manual_check', true ) ) { do_action( 'wc_postfinancecheckout_completed', $this->load_entity( $request ), $order ); - $status = apply_filters( 'wc_postfinancecheckout_completed_status', 'processing', $order ); + $status = apply_filters( 'wc_postfinancecheckout_completed_status', 'on-hold', $order ); $order->update_status( $status ); } } diff --git a/readme.txt b/readme.txt index 15b499b..4b140fc 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: postfinancecheckout AG Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing Requires at least: 4.7 Tested up to: 6.6 -Stable tag: 3.1.2 +Stable tag: 3.1.3 License: Apache 2 License URI: http://www.apache.org/licenses/LICENSE-2.0 @@ -23,7 +23,7 @@ To use this extension, a PostFinance Checkout account is required. Sign up on [P == Documentation == -Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.2/docs/en/documentation.html). +Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.3/docs/en/documentation.html). == Support == @@ -64,9 +64,5 @@ Enquiries about our terms of use can be made on the [PostFinance Checkout terms == Changelog == -= 3.1.2 - Sept 13 2024 = -- [Bugfix] Fixed installation error. -- [Tested Against] PHP 8.2 -- [Tested Against] Wordpress 6.6 -- [Tested Against] Woocommerce 9.3.1 -- [Tested Against] PHP SDK 4.5.0 += 3.1.3 - Sep 20 2024 = +- [Hotfix] Rolledback to version 3.0.12 diff --git a/woocommerce-postfinancecheckout.php b/woocommerce-postfinancecheckout.php index 739d422..273ee04 100644 --- a/woocommerce-postfinancecheckout.php +++ b/woocommerce-postfinancecheckout.php @@ -3,7 +3,7 @@ * Plugin Name: PostFinance Checkout * Plugin URI: https://wordpress.org/plugins/woo-postfinance-checkout * Description: Process WooCommerce payments with PostFinance Checkout. - * Version: 3.1.2 + * Version: 3.1.3 * Author: postfinancecheckout AG * Author URI: https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html * Text Domain: postfinancecheckout @@ -11,9 +11,10 @@ * Requires at least: 6.0 * Requires PHP: 7.4 * WC requires at least: 8.0.0 - * WC tested up to: 9.2.3 - * License: Apache 2 - * License URI: http://www.apache.org/licenses/LICENSE-2.0 + * WC tested up to: 9.3.1 + * + * Text Domain: postfinancecheckout + * Domain Path: /languages/ */ if ( ! defined( 'ABSPATH' ) ) { exit(); // Exit if accessed directly. @@ -28,25 +29,24 @@ */ final class WooCommerce_PostFinanceCheckout { - const POSTFINANCECHECKOUT_CK_SPACE_ID = 'wc_postfinancecheckout_space_id'; - const POSTFINANCECHECKOUT_CK_SPACE_VIEW_ID = 'wc_postfinancecheckout_space_view_id'; - const POSTFINANCECHECKOUT_CK_APP_USER_ID = 'wc_postfinancecheckout_application_user_id'; - const POSTFINANCECHECKOUT_CK_APP_USER_KEY = 'wc_postfinancecheckout_application_user_key'; - const POSTFINANCECHECKOUT_CK_CUSTOMER_INVOICE = 'wc_postfinancecheckout_customer_invoice'; - const POSTFINANCECHECKOUT_CK_CUSTOMER_PACKING = 'wc_postfinancecheckout_customer_packing'; - const POSTFINANCECHECKOUT_CK_SHOP_EMAIL = 'wc_postfinancecheckout_shop_email'; - const POSTFINANCECHECKOUT_CK_INTEGRATION = 'wc_postfinancecheckout_integration'; - const POSTFINANCECHECKOUT_CK_ORDER_REFERENCE = 'wc_postfinancecheckout_order_reference'; - const POSTFINANCECHECKOUT_CK_ENFORCE_CONSISTENCY = 'wc_postfinancecheckout_enforce_consistency'; - const POSTFINANCECHECKOUT_UPGRADE_VERSION = '3.1.2'; - const WC_MAXIMUM_VERSION = '9.2.3'; + const CK_SPACE_ID = 'wc_postfinancecheckout_space_id'; + const CK_SPACE_VIEW_ID = 'wc_postfinancecheckout_space_view_id'; + const CK_APP_USER_ID = 'wc_postfinancecheckout_application_user_id'; + const CK_APP_USER_KEY = 'wc_postfinancecheckout_application_user_key'; + const CK_CUSTOMER_INVOICE = 'wc_postfinancecheckout_customer_invoice'; + const CK_CUSTOMER_PACKING = 'wc_postfinancecheckout_customer_packing'; + const CK_SHOP_EMAIL = 'wc_postfinancecheckout_shop_email'; + const CK_INTEGRATION = 'wc_postfinancecheckout_integration'; + const CK_ORDER_REFERENCE = 'wc_postfinancecheckout_order_reference'; + const CK_ENFORCE_CONSISTENCY = 'wc_postfinancecheckout_enforce_consistency'; + const WC_MAXIMUM_VERSION = '9.3.1'; /** * WooCommerce PostFinanceCheckout version. * * @var string */ - private $version = '3.1.2'; + private $version = '3.1.3'; /** * The single instance of the class.