Skip to content

Commit

Permalink
Update sagepay_direct.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter authored Dec 31, 2023
1 parent e377be7 commit 1bc1698
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upload/admin/model/extension/payment/sagepay_direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ public function sendCurl(string $url, array $payment_data): array {

$response_info = explode(chr(10), $response);

$i = 0;

foreach ($response_info as $string) {
if (strpos($string, '=') && isset($i)) {
$parts = explode('=', $string, 2);
Expand All @@ -363,6 +365,8 @@ public function sendCurl(string $url, array $payment_data): array {

$data[trim($parts[0])] = trim($parts[1]);
}

$i++;
}

return $data;
Expand Down

0 comments on commit 1bc1698

Please sign in to comment.