change ClientID to accoundID when we validate link bank to account
This commit is contained in:
parent
5dec4e36ef
commit
982aa106a6
|
|
@ -1034,12 +1034,13 @@ INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON
|
|||
]);
|
||||
|
||||
$result = json_decode($response->getBody(), true);
|
||||
if (($result['status'] == 200 || $result['message'] == 'Success') && ($result['data']['clientID'] == $user_bank_account_verfication->iban)) {
|
||||
if (($result['status'] == 200 || $result['message'] == 'Success') && ($result['data']['accountID'] == $user_bank_account_verfication->iban)) {
|
||||
|
||||
$user_bank_account_verfication->update([
|
||||
'account_number' => $result['data']['accountID'] ?? null,
|
||||
'iban' => $result['data']['clientID'] ?? null,
|
||||
'is_verified' => 1,
|
||||
'was_treated' => 1
|
||||
'was_treated' => 1,
|
||||
]);
|
||||
|
||||
$user->update([
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Loading…
Reference in New Issue