From 19ce0cd5643fb62cf2b268a87c383b6ee2987692 Mon Sep 17 00:00:00 2001 From: Xemii Date: Thu, 28 Sep 2017 08:07:32 +0300 Subject: [PATCH] issue #9 (#10) --- src/Payment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Payment.php b/src/Payment.php index 820292c..aeefd76 100644 --- a/src/Payment.php +++ b/src/Payment.php @@ -99,7 +99,7 @@ public function getPaymentUrl() if ($this->customParams) { // sort params alphabetically ksort($this->customParams); - $signature .= ':' . http_build_query($this->customParams, null, ':'); + $signature .= ':' . implode(array_map(function($key, $value){ return $key . '=' .$value; }, array_keys($this->customParams), $this->customParams), ':'); } $this->data['SignatureValue'] = md5($signature); @@ -212,7 +212,7 @@ private function getCustomParamsString(array $source) } ksort($params); - $params = http_build_query($params, null, ':'); + $params = implode(array_map(function($key, $value){ return $key . '=' .$value; }, array_keys($params), $params), ':'); return $params ? ':' . $params : ''; }