Skip to content

Commit

Permalink
Release 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed May 30, 2024
1 parent d3efabe commit 34993d2
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 27 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 wallee plugin that enables WooCommerce to process p

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.4/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.5/docs/en/documentation.html)

## Support

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

## License

Please see the [license file](https://github.com/wallee-payment/woocommerce/blob/3.0.4/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/woocommerce/blob/3.0.5/LICENSE) for more information.
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => '78fcd801e94ec69893e5');
<?php return array('dependencies' => array('@woocommerce/blocks-registry', 'react', 'wp-polyfill'), 'version' => 'f90624c2cfe550c136e5');
2 changes: 1 addition & 1 deletion assets/js/frontend/blocks/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions assets/js/frontend/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ jQuery(
);
self.handle_description_for_empty_iframe( current_method );
self.handle_place_order_button_status( current_method );

// Reload the iframe if it exists, so the iframe's form has all the field data filled by the user
let iframe = document.getElementById('payment-form-' + current_method).querySelector('iframe');
if (iframe) {
iframe.src = iframe.src;
}
},

handle_description_for_empty_iframe : function(method_id) {
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,10 @@ Tested against:
- [Tested Against] Woocommerce 8.7.0
- [Tested Against] PHP SDK 4.0.2

= 3.0.5 - April 25 2024 =
- [Bugfix] Notification message in admin panel is now truly dissmisable.
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.5
- [Tested Against] Woocommerce 8.7.0
- [Tested Against] PHP SDK 4.0.2

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/wallee-payment/woocommerce/releases/tag/3.0.4/">
<a href="https://github.com/wallee-payment/woocommerce/releases/tag/3.0.5/">
Source
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wc-wallee-admin-settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function get_settings() {
$settings = array(
array(
'links' => array(
'https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.4/docs/en/documentation.html' => __( 'Documentation', 'woo-wallee' ),
'https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.5/docs/en/documentation.html' => __( 'Documentation', 'woo-wallee' ),
'https://app-wallee.com/user/signup' => __( 'Sign Up', 'woo-wallee' ),
),
'type' => 'wallee_links',
Expand Down
28 changes: 18 additions & 10 deletions includes/class-wc-wallee-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public static function check_version() {
public static function plugin_row_meta( $links, $file ) {
if ( WC_WALLEE_PLUGIN_BASENAME === $file ) {
$row_meta = array(
'docs' => '<a href="https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.4/docs/en/documentation.html" aria-label="' . esc_attr__( 'View Documentation', 'woo-wallee' ) . '">' . esc_html__( 'Documentation', 'woo-wallee' ) . '</a>',
'docs' => '<a href="https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.5/docs/en/documentation.html" aria-label="' . esc_attr__( 'View Documentation', 'woo-wallee' ) . '">' . esc_html__( 'Documentation', 'woo-wallee' ) . '</a>',
);

return array_merge( $links, $row_meta );
Expand Down Expand Up @@ -354,7 +354,7 @@ public static function update_1_0_0_initialize() {
`updated_at` datetime NOT NULL,
`restock` varchar(1) COLLATE utf8_unicode_ci,
`items` longtext COLLATE utf8_unicode_ci,
`failure_reason` longtext COLLATE utf8_unicode_ci,
`failure_reason` longtext COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`),
KEY `idx_transaction_id_space_id` (`transaction_id`,`space_id`),
KEY `idx_completion_id_space_id` (`completion_id`,`space_id`)
Expand Down Expand Up @@ -579,18 +579,26 @@ public static function update_1_0_6_shorten_table_names() {
}

/**
* Shows notification if there are unsupported features with woocommerce version.
*
* Shows a notice in the admin section if the WooCommerce version installed is not officially yet supported by us.
*
* @return void
*/
public static function supported_payments_integration_notice() {
public static function supported_payments_integration_notice(): void {
$woocommerce_data = get_plugin_data( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php', false, false );

if (version_compare( $woocommerce_data['Version'], WC_WALLEE_REQUIRED_WC_MAXIMUM_VERSION, '>' )) {
$class = 'notice notice-info is-dismissible';
$message = __( 'A version of the Wallee plugin is yet to be released for this version of WooCommerce.', 'sample-text-domain' );

printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
$notice_id = "wallee-{$woocommerce_data['Version']}-not-yet-supported";
if (!WC_Admin_Notices::user_has_dismissed_notice($notice_id)) {
$message = sprintf(__( 'The plugin Wallee has been tested up to WooCommerce %1$s but you have installed the version %2$s. Please notice that this is not recommended.' , 'woo-wallee'), WC_WALLEE_REQUIRED_WC_MAXIMUM_VERSION, $woocommerce_data['Version']);
WC_Admin_Notices::add_custom_notice($notice_id, esc_html( $message ));

// Clean up previous dismissals stored in the user data, from previous versions.
$previous_version = get_user_meta(get_current_user_id(), "wallee-previous-wc-min-version");
if ($previous_version) {
delete_user_meta(get_current_user_id(), "dismissed_wallee-{$previous_version[0]}-not-yet-supported_notice");
}
update_user_meta(get_current_user_id(), "wallee-previous-wc-min-version", $woocommerce_data['Version']);
}
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== wallee ===
Contributors: wallee AG
Tags: woocommerce wallee, woocommerce, wallee, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing
Requires at least: 6.0
Tested up to: 6.5
Stable tag: 3.0.4
Requires at least: 4.7
Tested up to: 6.2
Stable tag: 3.0.5
License: Apache 2
License URI: http://www.apache.org/licenses/LICENSE-2.0

Expand All @@ -23,7 +23,7 @@ To use this extension, a wallee account is required. Sign up on [wallee](https:/

== Documentation ==

Additional documentation for this plugin is available [here](https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.4/docs/en/documentation.html).
Additional documentation for this plugin is available [here](https://plugin-documentation.wallee.com/wallee-payment/woocommerce/3.0.5/docs/en/documentation.html).

== Support ==

Expand All @@ -33,9 +33,9 @@ Support queries can be issued on the [wallee support site](https://app-wallee.co

= Minimum Requirements =

* PHP version 7,4 or greater
* WordPress 6.0.0 up to 6.5.0
* WooCommerce 8.0.0 up to 8.7.0
* PHP version 5.6 or greater
* WordPress 4.7 up to 6.3.0
* WooCommerce 3.0.0 up to 8.0.0

= Automatic installation =

Expand All @@ -56,8 +56,8 @@ Support queries can be issued on the [wallee support site](https://app-wallee.co
== Changelog ==


= 3.0.4 - April 23 2024 =
- [Hotfix] Restore version and tested against comments in base file
= 3.0.5 - April 25 2024 =
- [Bugfix] Notification message in admin panel is now truly dissmisable.
- [Tested Against] PHP 8.2
- [Tested Against] Wordpress 6.5
- [Tested Against] Woocommerce 8.7.0
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-wallee.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wordpress.org/plugins/woo-wallee
* Description: Process WooCommerce payments with wallee.
* License: Apache2
* Version: 3.0.4
* Version: 3.0.5
* License URI: http://www.apache.org/licenses/LICENSE-2.0
* Author: wallee AG
* Author URI: https://www.wallee.com
Expand Down Expand Up @@ -46,7 +46,7 @@ final class WooCommerce_Wallee {
*
* @var string
*/
private $version = '3.0.4';
private $version = '3.0.5';

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

0 comments on commit 34993d2

Please sign in to comment.