From 940aa4edcb41596e69f682b90617b7d5d7b2f8a7 Mon Sep 17 00:00:00 2001 From: Marcin Warzybok Date: Tue, 30 Jan 2024 16:09:13 +0100 Subject: [PATCH 01/22] SP-787 Verify WooCommerce modal is working --- BitPayLib/Blocks/class-bitpaypaymentsblocks.php | 2 +- BitPayLib/class-bitpaycancelorder.php | 2 +- BitPayLib/class-bitpaycart.php | 2 +- BitPayLib/class-bitpaycheckouttransactions.php | 2 +- BitPayLib/class-bitpayclientfactory.php | 2 +- BitPayLib/class-bitpayinvoicecreate.php | 2 +- BitPayLib/class-bitpayipnprocess.php | 2 +- BitPayLib/class-bitpaylogger.php | 2 +- BitPayLib/class-bitpaypages.php | 2 +- BitPayLib/class-bitpaypaymentsettings.php | 2 +- BitPayLib/class-bitpaypluginsetup.php | 4 ++-- BitPayLib/class-wcgatewaybitpay.php | 2 +- CHANGELOG.md | 4 +--- index.php | 2 +- readme.txt | 6 ++---- 15 files changed, 17 insertions(+), 21 deletions(-) diff --git a/BitPayLib/Blocks/class-bitpaypaymentsblocks.php b/BitPayLib/Blocks/class-bitpaypaymentsblocks.php index 2433d1e..564ea26 100644 --- a/BitPayLib/Blocks/class-bitpaypaymentsblocks.php +++ b/BitPayLib/Blocks/class-bitpaypaymentsblocks.php @@ -12,7 +12,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaycancelorder.php b/BitPayLib/class-bitpaycancelorder.php index 1bc9c44..8bb9365 100644 --- a/BitPayLib/class-bitpaycancelorder.php +++ b/BitPayLib/class-bitpaycancelorder.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaycart.php b/BitPayLib/class-bitpaycart.php index 55ea1e5..3be6db2 100644 --- a/BitPayLib/class-bitpaycart.php +++ b/BitPayLib/class-bitpaycart.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaycheckouttransactions.php b/BitPayLib/class-bitpaycheckouttransactions.php index 019d8e4..24d7694 100644 --- a/BitPayLib/class-bitpaycheckouttransactions.php +++ b/BitPayLib/class-bitpaycheckouttransactions.php @@ -11,7 +11,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpayclientfactory.php b/BitPayLib/class-bitpayclientfactory.php index c92b843..28bbfbc 100644 --- a/BitPayLib/class-bitpayclientfactory.php +++ b/BitPayLib/class-bitpayclientfactory.php @@ -13,7 +13,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpayinvoicecreate.php b/BitPayLib/class-bitpayinvoicecreate.php index 264b487..943a7b5 100644 --- a/BitPayLib/class-bitpayinvoicecreate.php +++ b/BitPayLib/class-bitpayinvoicecreate.php @@ -13,7 +13,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpayipnprocess.php b/BitPayLib/class-bitpayipnprocess.php index c08ceea..257744b 100644 --- a/BitPayLib/class-bitpayipnprocess.php +++ b/BitPayLib/class-bitpayipnprocess.php @@ -13,7 +13,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaylogger.php b/BitPayLib/class-bitpaylogger.php index a034102..161be2e 100644 --- a/BitPayLib/class-bitpaylogger.php +++ b/BitPayLib/class-bitpaylogger.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaypages.php b/BitPayLib/class-bitpaypages.php index e858f65..31e0d27 100644 --- a/BitPayLib/class-bitpaypages.php +++ b/BitPayLib/class-bitpaypages.php @@ -7,7 +7,7 @@ /** * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaypaymentsettings.php b/BitPayLib/class-bitpaypaymentsettings.php index 053cff6..de7e0cf 100644 --- a/BitPayLib/class-bitpaypaymentsettings.php +++ b/BitPayLib/class-bitpaypaymentsettings.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-bitpaypluginsetup.php b/BitPayLib/class-bitpaypluginsetup.php index a6e7fa7..f8df946 100644 --- a/BitPayLib/class-bitpaypluginsetup.php +++ b/BitPayLib/class-bitpaypluginsetup.php @@ -11,13 +11,13 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ class BitPayPluginSetup { - public const VERSION = '5.4.1'; + public const VERSION = '5.4.0'; private BitPayIpnProcess $bitpay_ipn_process; private BitPayCancelOrder $bitpay_cancel_order; diff --git a/BitPayLib/class-wcgatewaybitpay.php b/BitPayLib/class-wcgatewaybitpay.php index 962283a..169d7b5 100644 --- a/BitPayLib/class-wcgatewaybitpay.php +++ b/BitPayLib/class-wcgatewaybitpay.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/CHANGELOG.md b/CHANGELOG.md index 5468846..5127201 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -# 5.4.1 -* Fixed Checkout Flow (BitPay Modal) - # 5.4.0 * Added compatibility with Checkout Blocks +* Fixed Checkout Flow (BitPay Modal) * Tested compatibility with WordPress 6.4.2 # 5.3.2 diff --git a/index.php b/index.php index bf0fdb4..b6ccf5b 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.4.1 + * Version: 5.4.0 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/readme.txt b/readme.txt index 24cf7ee..b976fc5 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Requires at least: 6.0 Tested up to: 6.4.2 Requires PHP: 8.0 Recommended PHP: 8.0 -Stable tag: 5.4.1 +Stable tag: 5.4.0 License: MIT License (MIT) License URI: https://github.com/bitpay/bitpay-checkout-for-woocommerce/blob/master/LICENSE @@ -111,11 +111,9 @@ You can contact our support team via the following form https://bitpay.com/reque == Changelog == -= 5.4.1 = -* Fixed Checkout Flow (BitPay Modal) - = 5.4.0 = * Added compatibility with Checkout Blocks +* Fixed Checkout Flow (BitPay Modal) * Tested compatibility with WordPress 6.4.2 = 5.3.2 = From 06747c3c179efc2056461c05dc51e60ae13776bd Mon Sep 17 00:00:00 2001 From: Marcin Warzybok Date: Fri, 2 Feb 2024 13:28:52 +0100 Subject: [PATCH 02/22] SP-787 add version of plugin for JS scripts --- BitPayLib/class-bitpaypages.php | 4 ++-- BitPayLib/class-wcgatewaybitpay.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BitPayLib/class-bitpaypages.php b/BitPayLib/class-bitpaypages.php index 31e0d27..a11a60d 100644 --- a/BitPayLib/class-bitpaypages.php +++ b/BitPayLib/class-bitpaypages.php @@ -38,8 +38,8 @@ public function checkout_thank_you( int $order_id ): void { $invoice_id = $_COOKIE['bitpay-invoice-id'] ?? null; // phpcs:ignore - wp_enqueue_script( 'remote-bitpay-js', $js_script, null, null, false ); // phpcs:ignore - wp_enqueue_script( 'bitpay_thank_you', plugins_url( '../../js/bitpay_thank_you.js', __FILE__ ), null, 1, false ); + wp_enqueue_script( 'remote-bitpay-js', $js_script, null, BitPayPluginSetup::VERSION, false ); // phpcs:ignore + wp_enqueue_script( 'bitpay_thank_you', plugins_url( '../../js/bitpay_thank_you.js', __FILE__ ), null, BitPayPluginSetup::VERSION, false ); // phpcs:ignore ?>