change ClientID to accoundID when we validate link bank to account

This commit is contained in:
root 2026-03-10 18:37:46 +01:00
parent 5dec4e36ef
commit 982aa106a6
2 changed files with 3 additions and 2 deletions

View File

@ -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([

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB