From 9a920d6f4be04b411522a920683237a7237dd160 Mon Sep 17 00:00:00 2001 From: Chris L Date: Tue, 17 Mar 2026 16:43:31 +0100 Subject: [PATCH] Provide default values to prevent undefined index Notices --- includes/gateways/DirectDebitSecured.php | 3 ++- includes/gateways/Installment.php | 3 ++- includes/gateways/Invoice.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/gateways/DirectDebitSecured.php b/includes/gateways/DirectDebitSecured.php index f2bbc86..7c5c8c0 100644 --- a/includes/gateways/DirectDebitSecured.php +++ b/includes/gateways/DirectDebitSecured.php @@ -97,7 +97,8 @@ public function get_form_fields() { 'default' => '', ), 'additional_key_info' => array( - 'type' => 'unzer_additional_key_info', + 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ), diff --git a/includes/gateways/Installment.php b/includes/gateways/Installment.php index 43e1f3d..d38ed57 100644 --- a/includes/gateways/Installment.php +++ b/includes/gateways/Installment.php @@ -105,7 +105,8 @@ public function get_form_fields() { 'default' => '', ), 'additional_key_info' => array( - 'type' => 'unzer_additional_key_info', + 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ), diff --git a/includes/gateways/Invoice.php b/includes/gateways/Invoice.php index 9e9c1df..96604d3 100644 --- a/includes/gateways/Invoice.php +++ b/includes/gateways/Invoice.php @@ -66,7 +66,8 @@ public function get_form_fields() { 'default' => '', ), 'additional_key_info' => array( - 'type' => 'unzer_additional_key_info', + 'type' => 'unzer_additional_key_info', + 'default' => '', ), 'public_key_eur_b2c' => array( 'title' => __( 'Public Key EUR/B2C', 'unzer-payments' ),