Skip to content

Commit

Permalink
Release 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Sep 25, 2024
1 parent beb50fa commit 6cc4bc4
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 13 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.2.1/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html)

## Support

Expand All @@ -33,7 +33,7 @@ ____________________________________________________________________________

## License

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

## Privacy Policy

Expand Down
9 changes: 9 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -841,3 +841,12 @@ Tested against:
- [Tested Against] Woocommerce 9.3.1
- [Tested Against] PHP SDK 4.5.0

= 3.3.0 - Sept 25 2024 =
- [Bugfix] Fix for infinite load when Germanized plugin active
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.6
- [Tested Against] Woocommerce 9.3.2
- [Tested Against] PHP SDK 4.6.0

Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal level, instead of rounding per line" is disabled

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.2.1/">
<a href="https://github.com/pfpayments/woocommerce/releases/tag/3.3.0/">
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.2.1/docs/en/documentation.html' => esc_html__( 'Documentation', 'woo-postfinancecheckout' ),
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/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
15 changes: 15 additions & 0 deletions includes/class-wc-postfinancecheckout-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ class WC_PostFinanceCheckout_Gateway extends WC_Payment_Gateway {
* @var $pfc_image_base
*/
private $pfc_image_base = null;

/**
* Check to see if we have made the gateway available already.
*
* @var $haveAlreadyEntered have we already entered.
*/
private $haveAlreadyEntered = false;

/**
* Constructor.
Expand Down Expand Up @@ -380,6 +387,12 @@ public function is_available() {
return false;
}
} else {
if ( $this->haveAlreadyEntered === true ) {
return true;
}

$this->haveAlreadyEntered = true;

try {
$possible_methods = WC_PostFinanceCheckout_Service_Transaction::instance()->get_possible_payment_methods_for_cart();
} catch ( WC_PostFinanceCheckout_Exception_Invalid_Transaction_Amount $e ) {
Expand All @@ -401,6 +414,8 @@ public function is_available() {
} catch ( Exception $e ) {
WooCommerce_PostFinanceCheckout::instance()->log( $e->getMessage(), WC_Log_Levels::DEBUG );
return false;
} finally {
$this->haveAlreadyEntered = false;
}
}

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 @@ -267,7 +267,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.2.1/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.3.0/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
14 changes: 8 additions & 6 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.2.1
Stable tag: 3.3.0
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.2.1/docs/en/documentation.html).
Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/3.3.0/docs/en/documentation.html).

== Support ==

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


= 3.2.1 - Sept 24 2024 =
- [Bugfix] Fix constant name
= 3.3.0 - Sept 25 2024 =
- [Bugfix] Fix for infinite load when Germanized plugin active
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.6
- [Tested Against] Woocommerce 9.3.1
- [Tested Against] PHP SDK 4.5.0
- [Tested Against] Woocommerce 9.3.2
- [Tested Against] PHP SDK 4.6.0

Please ensure that in woocommerce->settings->tax, the "Round tax at subtotal level, instead of rounding per line" is disabled
4 changes: 2 additions & 2 deletions woocommerce-postfinancecheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.1
* Version: 3.3.0
* Author: postfinancecheckout AG
* Author URI: https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html
* Text Domain: postfinancecheckout
Expand Down Expand Up @@ -46,7 +46,7 @@ final class WooCommerce_PostFinanceCheckout {
*
* @var string
*/
private $version = '3.2.1';
private $version = '3.3.0';

/**
* The single instance of the class.
Expand Down

0 comments on commit 6cc4bc4

Please sign in to comment.