From ddc752539031f641b4c974d4b0faaed7caa7a3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20K=C4=85kol?= Date: Wed, 22 Apr 2026 09:21:42 +0200 Subject: [PATCH 1/2] Currency field in notification --- src/Model/Fields/Notification/Currency.php | 14 ++++++++++++++ .../Objects/NotificationBody/BasicPayment.php | 5 +++++ src/SdkVersion.php | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/Model/Fields/Notification/Currency.php diff --git a/src/Model/Fields/Notification/Currency.php b/src/Model/Fields/Notification/Currency.php new file mode 100644 index 0000000..efde856 --- /dev/null +++ b/src/Model/Fields/Notification/Currency.php @@ -0,0 +1,14 @@ + TransactionStatus::class, 'tr_error' => Error::class, 'tr_email' => Email::class, + 'tr_currency' => Currency::class, 'md5sum' => Md5sum::class, 'test_mode' => TestMode::class, 'wallet' => Wallet::class, @@ -81,6 +83,9 @@ class BasicPayment extends Objects /** @var Email */ public $tr_email; + /** @var Currency */ + public $tr_currency; + /** @var Md5sum */ public $md5sum; diff --git a/src/SdkVersion.php b/src/SdkVersion.php index a11ca4b..e9e4a49 100644 --- a/src/SdkVersion.php +++ b/src/SdkVersion.php @@ -4,5 +4,5 @@ final class SdkVersion { - const VERSION = '2.4.3'; + const VERSION = '2.4.4'; } From dbd62055aa814fe0817d20f3cf69b5b3c609b634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20K=C4=85kol?= Date: Mon, 22 Jun 2026 12:42:46 +0200 Subject: [PATCH 2/2] Deprecated Functionality: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 --- src/Curl/Curl.php | 4 ++-- src/Utilities/CacheCertificateProvider.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 8bcd9b8..dfe4f10 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -122,7 +122,7 @@ public function sendRequest() $this->curlInfo = curl_getinfo($ch); $this->curlError = curl_error($ch); $this->curlErrorNumber = curl_errno($ch); - curl_close($ch); + $this->result = $curlRes; return $this; @@ -138,7 +138,7 @@ public function download() $this->curlInfo = curl_getinfo($ch); $this->curlError = curl_error($ch); $this->curlErrorNumber = curl_errno($ch); - curl_close($ch); + $this->result = $curlRes; fseek($fp, 0); diff --git a/src/Utilities/CacheCertificateProvider.php b/src/Utilities/CacheCertificateProvider.php index 50a5f42..042d6df 100644 --- a/src/Utilities/CacheCertificateProvider.php +++ b/src/Utilities/CacheCertificateProvider.php @@ -74,9 +74,7 @@ private function getFile($url) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - $result = curl_exec($ch); - curl_close($ch); - return $result; + return curl_exec($ch); } }