Skip to content

Commit 6cc4bc4

Browse files
Release 3.3.0
1 parent beb50fa commit 6cc4bc4

8 files changed

+39
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc
1616

1717
## Documentation
1818

19-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.2.1/docs/en/documentation.html)
19+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html)
2020

2121
## Support
2222

@@ -33,7 +33,7 @@ ____________________________________________________________________________
3333

3434
## License
3535

36-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.2.1/LICENSE) for more information.
36+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/3.3.0/LICENSE) for more information.
3737

3838
## Privacy Policy
3939

changelog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,3 +841,12 @@ Tested against:
841841
- [Tested Against] Woocommerce 9.3.1
842842
- [Tested Against] PHP SDK 4.5.0
843843

844+
= 3.3.0 - Sept 25 2024 =
845+
- [Bugfix] Fix for infinite load when Germanized plugin active
846+
- [Tested Against] PHP 8.2
847+
- [Tested Against] Wordpress 6.6
848+
- [Tested Against] Woocommerce 9.3.2
849+
- [Tested Against] PHP SDK 4.6.0
850+
851+
Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal level, instead of rounding per line" is disabled
852+

docs/en/documentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Documentation</h2> </div>
2323
</a>
2424
</li>
2525
<li>
26-
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.2.1/">
26+
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.0/">
2727
Source
2828
</a>
2929
</li>

includes/admin/class-wc-postfinancecheckout-admin-settings-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function get_settings() {
184184
$settings = array(
185185
array(
186186
'links' => array(
187-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.2.1/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
187+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
188188
'https://checkout.postfinance.ch/en-ch/user/signup' => esc_html__( 'Sign Up', 'woo-postfinancecheckout' ),
189189
),
190190
'type' => 'postfinancecheckout_links',

includes/class-wc-postfinancecheckout-gateway.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ class WC_PostFinanceCheckout_Gateway extends WC_Payment_Gateway {
9292
* @var $pfc_image_base
9393
*/
9494
private $pfc_image_base = null;
95+
96+
/**
97+
* Check to see if we have made the gateway available already.
98+
*
99+
* @var $haveAlreadyEntered have we already entered.
100+
*/
101+
private $haveAlreadyEntered = false;
95102

96103
/**
97104
* Constructor.
@@ -380,6 +387,12 @@ public function is_available() {
380387
return false;
381388
}
382389
} else {
390+
if ( $this->haveAlreadyEntered === true ) {
391+
return true;
392+
}
393+
394+
$this->haveAlreadyEntered = true;
395+
383396
try {
384397
$possible_methods = WC_PostFinanceCheckout_Service_Transaction::instance()->get_possible_payment_methods_for_cart();
385398
} catch ( WC_PostFinanceCheckout_Exception_Invalid_Transaction_Amount $e ) {
@@ -401,6 +414,8 @@ public function is_available() {
401414
} catch ( Exception $e ) {
402415
WooCommerce_PostFinanceCheckout::instance()->log( $e->getMessage(), WC_Log_Levels::DEBUG );
403416
return false;
417+
} finally {
418+
$this->haveAlreadyEntered = false;
404419
}
405420
}
406421

includes/class-wc-postfinancecheckout-migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public static function check_version() {
267267
public static function plugin_row_meta( $links, $file ) {
268268
if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) {
269269
$row_meta = array(
270-
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.2.1/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
270+
'docs' => '<a href="https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html" aria-label="' . esc_html__( 'View Documentation', 'woo-postfinancecheckout' ) . '">' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '</a>',
271271
);
272272

273273
return array_merge( $links, $row_meta );

readme.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: postfinancecheckout AG
33
Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing
44
Requires at least: 4.7
55
Tested up to: 6.6
6-
Stable tag: 3.2.1
6+
Stable tag: 3.3.0
77
License: Apache 2
88
License URI: http://www.apache.org/licenses/LICENSE-2.0
99

@@ -23,7 +23,7 @@ To use this extension, a PostFinance Checkout account is required. Sign up on [P
2323

2424
== Documentation ==
2525

26-
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.2.1/docs/en/documentation.html).
26+
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html).
2727

2828
== Support ==
2929

@@ -64,9 +64,11 @@ Enquiries about our terms of use can be made on the [PostFinance Checkout terms
6464
== Changelog ==
6565

6666

67-
= 3.2.1 - Sept 24 2024 =
68-
- [Bugfix] Fix constant name
67+
= 3.3.0 - Sept 25 2024 =
68+
- [Bugfix] Fix for infinite load when Germanized plugin active
6969
- [Tested Against] PHP 8.2
7070
- [Tested Against] Wordpress 6.6
71-
- [Tested Against] Woocommerce 9.3.1
72-
- [Tested Against] PHP SDK 4.5.0
71+
- [Tested Against] Woocommerce 9.3.2
72+
- [Tested Against] PHP SDK 4.6.0
73+
74+
Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal level, instead of rounding per line" is disabled

woocommerce-postfinancecheckout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: PostFinance Checkout
44
* Plugin URI: https://wordpress.org/plugins/woo-postfinance-checkout
55
* Description: Process WooCommerce payments with PostFinance Checkout.
6-
* Version: 3.2.1
6+
* Version: 3.3.0
77
* Author: postfinancecheckout AG
88
* Author URI: https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html
99
* Text Domain: postfinancecheckout
@@ -46,7 +46,7 @@ final class WooCommerce_PostFinanceCheckout {
4646
*
4747
* @var string
4848
*/
49-
private $version = '3.2.1';
49+
private $version = '3.3.0';
5050

5151
/**
5252
* The single instance of the class.

0 commit comments

Comments
 (0)