From 72ba07c5ffcf70bd90584420d978516578903fcb Mon Sep 17 00:00:00 2001 From: ndeet Date: Thu, 17 Aug 2023 12:44:31 +0200 Subject: [PATCH] Adding webhook endpoint tooltip. (#21) --- btcpay-greenfield-for-woocommerce.php | 4 ++-- readme.txt | 9 ++++++++- src/Admin/GlobalSettings.php | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/btcpay-greenfield-for-woocommerce.php b/btcpay-greenfield-for-woocommerce.php index 722407d..0f29229 100644 --- a/btcpay-greenfield-for-woocommerce.php +++ b/btcpay-greenfield-for-woocommerce.php @@ -7,7 +7,7 @@ * Author URI: https://btcpayserver.org * Text Domain: btcpay-greenfield-for-woocommerce * Domain Path: /languages - * Version: 2.2.0 + * Version: 2.2.1 * Requires PHP: 7.4 * Tested up to: 6.3 * Requires at least: 5.2 @@ -25,7 +25,7 @@ defined( 'ABSPATH' ) || exit(); -define( 'BTCPAYSERVER_VERSION', '2.2.0' ); +define( 'BTCPAYSERVER_VERSION', '2.2.1' ); define( 'BTCPAYSERVER_VERSION_KEY', 'btcpay_gf_version' ); define( 'BTCPAYSERVER_PLUGIN_FILE_PATH', plugin_dir_path( __FILE__ ) ); define( 'BTCPAYSERVER_PLUGIN_URL', plugin_dir_url(__FILE__ ) ); diff --git a/readme.txt b/readme.txt index 63fd957..d204063 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: bitcoin, btcpay, BTCPay Server, btcpayserver, WooCommerce, payment gateway Requires at least: 5.2 Tested up to: 6.3 Requires PHP: 7.4 -Stable tag: 2.2.0 +Stable tag: 2.2.1 License: MIT License URI: https://github.com/btcpayserver/woocommerce-greenfield-plugin/blob/master/license.txt @@ -103,6 +103,13 @@ You'll find extensive documentation and answers to many of your questions on [BT 6. Example of the PoS app you can launch. == Changelog == + += 2.2.1 :: 2023-08-17 = +* Add tooltip with webhook callback information + += 2.2.0 :: 2023-08-17 = +* Refactor settings UI and allow manual webhook secret entry. This allows 3rd party integrators limit their API keys scope and not include the webhook permission. + = 2.1.0 :: 2023-04-03 = * New feature: Modal / Overlay checkout mode (no redirect to BTCPay Server) diff --git a/src/Admin/GlobalSettings.php b/src/Admin/GlobalSettings.php index 5e7191f..3f76764 100644 --- a/src/Admin/GlobalSettings.php +++ b/src/Admin/GlobalSettings.php @@ -150,6 +150,7 @@ public function getGlobalSettings(): array 'title' => esc_html_x( 'Webhook secret (optional)', 'global_settings','btcpay-greenfield-for-woocommerce' ), 'type' => 'text', 'desc' => _x( 'If left empty an webhook will created automatically on save. Only fill out if you know the webhook secret and the webhook was created manually on BTCPay Server.', 'global_settings', 'btcpay-greenfield-for-woocommerce' ), + 'desc_tip' => _x( 'The BTCPay webhook endpoint can be reached here: ' . site_url() . '/wc-api/btcpaygf_default/', 'global_settings', 'btcpay-greenfield-for-woocommerce' ), 'default' => '', 'id' => 'btcpay_gf_whsecret' ],