+ Fix bug on Adyen API cash-in/cash-out v2

This commit is contained in:
Djery-Tom 2020-08-10 00:17:35 +01:00
parent aafae82a2d
commit 2c1181f99a
1 changed files with 5 additions and 5 deletions

View File

@ -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) {