From f90d6dae66826c6d2ef8c52ede19f1baf4145edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 14 Nov 2024 13:17:06 +0100 Subject: [PATCH 1/2] Update webhook URL tooltip. --- src/Integration.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Integration.php b/src/Integration.php index fc67f0c..85730e4 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -170,9 +170,10 @@ public function get_settings_fields() { 'readonly' => true, 'section' => 'feedback', 'title' => \__( 'Webhook URL', 'pronamic_ideal' ), - 'tooltip' => \__( - 'The Webhook URL as sent with each transaction to receive automatic payment status updates on.', - 'pronamic_ideal' + 'tooltip' => \sprintf( + /* translators: %s: payment provider name */ + \__( 'Copy the Webhook URL to the %s dashboard to receive automatic transaction status updates.', 'pronamic_ideal' ), + \__( 'Rabo Smart Pay', 'pronamic_ideal' ) ), 'type' => 'text', 'value' => \rest_url( self::REST_ROUTE_NAMESPACE . '/webhook/' . (string) \get_the_ID() ), From c479db101e9a0b65e68aa9c4cac0754045e0f2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 14 Nov 2024 13:20:13 +0100 Subject: [PATCH 2/2] Coding standards. --- src/Integration.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Integration.php b/src/Integration.php index 85730e4..2532be5 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -172,7 +172,10 @@ public function get_settings_fields() { 'title' => \__( 'Webhook URL', 'pronamic_ideal' ), 'tooltip' => \sprintf( /* translators: %s: payment provider name */ - \__( 'Copy the Webhook URL to the %s dashboard to receive automatic transaction status updates.', 'pronamic_ideal' ), + \__( + 'Copy the Webhook URL to the %s dashboard to receive automatic transaction status updates.', + 'pronamic_ideal' + ), \__( 'Rabo Smart Pay', 'pronamic_ideal' ) ), 'type' => 'text',