From c310df6de9f3d9f2367f3c8265559148faa2094b Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 1 Jul 2024 11:38:14 -0400 Subject: [PATCH 1/2] SP-998: Fix payment logo url and bump version --- BitPayLib/Blocks/class-bitpaypaymentsblocks.php | 2 +- BitPayLib/Exception/class-bitpayinvalidorder.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 | 2 +- BitPayLib/class-wcgatewaybitpay.php | 4 ++-- BitPayLib/trait-wpdbhelper.php | 2 +- index.php | 2 +- readme.txt | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/BitPayLib/Blocks/class-bitpaypaymentsblocks.php b/BitPayLib/Blocks/class-bitpaypaymentsblocks.php index 4aa7d08..8eb3d61 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.5.0 + * Version: 5.5.1 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/Exception/class-bitpayinvalidorder.php b/BitPayLib/Exception/class-bitpayinvalidorder.php index d0de2d5..1d9cb71 100644 --- a/BitPayLib/Exception/class-bitpayinvalidorder.php +++ b/BitPayLib/Exception/class-bitpayinvalidorder.php @@ -8,7 +8,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.5.0 + * Version: 5.5.1 * 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 09d042f..d2bd807 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.5.0 + * Version: 5.5.1 * 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 31932d7..0383d24 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.5.0 + * Version: 5.5.1 * 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 1d61aa6..f86d013 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.5.0 + * Version: 5.5.1 * 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 e681a0b..c4d3ff8 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.5.0 + * Version: 5.5.1 * 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 ce84b75..9c61c10 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.5.0 + * Version: 5.5.1 * 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 fb11e3e..efdae6c 100644 --- a/BitPayLib/class-bitpayipnprocess.php +++ b/BitPayLib/class-bitpayipnprocess.php @@ -14,7 +14,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.5.0 + * Version: 5.5.1 * 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 6b4ba2f..9067cd4 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.5.0 + * Version: 5.5.1 * 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 c23d8b2..3b14b68 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.5.0 + * Version: 5.5.1 * 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 48f9a71..95866c0 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.5.0 + * Version: 5.5.1 * 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 a797612..9121321 100644 --- a/BitPayLib/class-bitpaypluginsetup.php +++ b/BitPayLib/class-bitpaypluginsetup.php @@ -11,7 +11,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.5.0 + * Version: 5.5.1 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/BitPayLib/class-wcgatewaybitpay.php b/BitPayLib/class-wcgatewaybitpay.php index b4e0ab2..ca5d053 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.5.0 + * Version: 5.5.1 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ @@ -309,7 +309,7 @@ public function process_payment( $order_id ) { private function get_icon_on_payment_page(): string { $settings = new BitPayPaymentSettings(); - return $settings->get_payment_logo_url() . '" id="bitpay_logo'; + return add_query_arg('id', 'bitpay_logo', $settings->get_payment_logo_url()); } private function get_processing_link(): string { diff --git a/BitPayLib/trait-wpdbhelper.php b/BitPayLib/trait-wpdbhelper.php index 3ab2731..a4dcfa2 100644 --- a/BitPayLib/trait-wpdbhelper.php +++ b/BitPayLib/trait-wpdbhelper.php @@ -10,7 +10,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: BitPay Checkout Plugin - * Version: 5.5.0 + * Version: 5.5.1 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/index.php b/index.php index 03461c5..b834492 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.5.0 + * Version: 5.5.1 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ diff --git a/readme.txt b/readme.txt index a67e33e..ed4cb51 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Requires at least: 6.0 Tested up to: 6.5.2 Requires PHP: 8.0 Recommended PHP: 8.0 -Stable tag: 5.5.0 +Stable tag: 5.5.1 License: MIT License (MIT) License URI: https://github.com/bitpay/bitpay-checkout-for-woocommerce/blob/master/LICENSE From 7a4550924cff391ac2d7e95ad68aadade8f85d02 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 1 Jul 2024 16:01:39 -0400 Subject: [PATCH 2/2] SP-998: Update spaces --- BitPayLib/class-wcgatewaybitpay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BitPayLib/class-wcgatewaybitpay.php b/BitPayLib/class-wcgatewaybitpay.php index ca5d053..6945617 100644 --- a/BitPayLib/class-wcgatewaybitpay.php +++ b/BitPayLib/class-wcgatewaybitpay.php @@ -309,7 +309,7 @@ public function process_payment( $order_id ) { private function get_icon_on_payment_page(): string { $settings = new BitPayPaymentSettings(); - return add_query_arg('id', 'bitpay_logo', $settings->get_payment_logo_url()); + return add_query_arg( 'id', 'bitpay_logo', $settings->get_payment_logo_url() ); } private function get_processing_link(): string {