Skip to content

Commit

Permalink
Release 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrososa committed Sep 20, 2024
1 parent 5c621a5 commit 50810e0
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.1.2/">
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.1.3/">
Source
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-postfinancecheckout-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.2/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.1.3/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
);

return array_merge( $links, $row_meta );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down
12 changes: 4 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ==

Expand Down Expand Up @@ -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
34 changes: 17 additions & 17 deletions woocommerce-postfinancecheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
* 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
* Domain Path: /languages/
* 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.
Expand All @@ -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';

This comment has been minimized.

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.
Expand Down

0 comments on commit 50810e0

Please sign in to comment.