From 2c1181f99a84580721c0c1657216454dd3b29712 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Mon, 10 Aug 2020 00:17:35 +0100 Subject: [PATCH] + Fix bug on Adyen API cash-in/cash-out v2 --- app/Http/Controllers/iLinkTransactionController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 8c41882..ee30955 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -232,7 +232,7 @@ class iLinkTransactionController extends Controller $body['currency'] = $this->getCurrency($init_country); $body['ref'] = date("Y-m-d H:i:s.u"); - $response = $client->post($this->PAYOUT_URL, ['json' => $body]); + $response = $client->post($this->PAYOUT_URL, ['json' => $body, 'http_errors' => false]); $code = $response->getStatusCode(); @@ -425,7 +425,7 @@ class iLinkTransactionController extends Controller $body['ref'] = date("Y-m-d H:i:s.u"); // dd($body); - $response = $client->post($this->PAYMENT_URL, ['json' => $body]); + $response = $client->post($this->PAYMENT_URL, ['json' => $body, 'http_errors' => false]); $code = $response->getStatusCode(); if ($code == 200) { @@ -486,7 +486,7 @@ class iLinkTransactionController extends Controller $body['currency'] = $this->getCurrency($init_country); $body['ref'] = date("Y-m-d H:i:s.u"); - $response = $client->post($this->PAYMENT_URL, ['json' => $body]); + $response = $client->post($this->PAYMENT_URL, ['json' => $body, 'http_errors' => false]); $code = $response->getStatusCode(); if ($code == 200) { @@ -631,7 +631,7 @@ class iLinkTransactionController extends Controller $body['currency'] = $this->getCurrency($init_country); $body['ref'] = date("Y-m-d H:i:s.u"); - $response = $client->post($this->PAYMENT_URL, ['json' => $body]); + $response = $client->post($this->PAYMENT_URL, ['json' => $body, 'http_errors' => false]); $code = $response->getStatusCode(); if ($code == 200) { @@ -814,7 +814,7 @@ class iLinkTransactionController extends Controller $body['currency'] = $this->getCurrency($init_country); $body['ref'] = date("Y-m-d H:i:s.u"); - $response = $client->post($this->PAYOUT_URL, ['json' => $body]); + $response = $client->post($this->PAYOUT_URL, ['json' => $body, 'http_errors' => false]); $code = $response->getStatusCode(); if ($code == 200) {