From 3c2a7c333adf955dd056f74c2d5b0a018b5c0354 Mon Sep 17 00:00:00 2001 From: Dirk Olbertz Date: Mon, 15 Jul 2024 15:15:54 +0200 Subject: [PATCH] repair html entity encoding by wordpress for key option field --- src/Payone/Payone/Api/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Payone/Payone/Api/Request.php b/src/Payone/Payone/Api/Request.php index 7c5fe7a..1113abc 100644 --- a/src/Payone/Payone/Api/Request.php +++ b/src/Payone/Payone/Api/Request.php @@ -150,7 +150,7 @@ public function get_key() { * @return Request */ public function set_key( $key ) { - $this->set( 'key', hash( 'sha384', $key ) ); + $this->set( 'key', hash( 'sha384', html_entity_decode( $key ) ) ); return $this; }