From 292ef32e44860e30670be6a7bb4423f96d7013c0 Mon Sep 17 00:00:00 2001 From: Tony D Date: Fri, 4 Oct 2024 22:43:20 +0200 Subject: [PATCH] fix static methods error --- lib/lyra-payment-form-sdk/Api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyra-payment-form-sdk/Api.php b/lib/lyra-payment-form-sdk/Api.php index da79ebc..301fd22 100644 --- a/lib/lyra-payment-form-sdk/Api.php +++ b/lib/lyra-payment-form-sdk/Api.php @@ -85,7 +85,7 @@ public static function isSupportedLanguage($lang) * @param int $timestamp * @return string the generated trans_id */ - public function generateTransId($timestamp = null) + public static function generateTransId($timestamp = null) { if (! $timestamp) { $timestamp = time(); @@ -107,7 +107,7 @@ public function generateTransId($timestamp = null) * @param boolean $hashed set to false to get the unhashed signature * @return string */ - public function sign($parameters, $key, $algo = 'ALGO_SHA256', $hashed = true) + public static function sign($parameters, $key, $algo = 'ALGO_SHA256', $hashed = true) { ksort($parameters); @@ -157,7 +157,7 @@ public static function uncharm($potentially_quoted_data) return $sane; } - public function fn_echo($param) + public static function fn_echo($param) { echo $param; }