+ Fix bug on Adyen API cash-in/cash-out v2
This commit is contained in:
parent
aafae82a2d
commit
2c1181f99a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue