This commit is contained in:
jouls 2024-03-12 08:57:09 +08:00
commit 6f81ba765a
1 changed files with 7 additions and 4 deletions

View File

@ -22,8 +22,8 @@ $BearerToken = $_SESSION['token'];
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand">Verify KYCs</a>
<div class="navbar-brand">
<header> VERIFY YOUR KYCs </header>
</div>
</div>
</nav>
@ -37,8 +37,11 @@ $BearerToken = $_SESSION['token'];
$response = get_kyc_info($IDkyc, $BearerToken);
$array = json_decode($response, true);
$CurrentUserAddress = '' . $array['userRef']['address1'] . ', ' . $array['userRef']['city'] . ', ' . $array['userRef']['province'] . ', ' . $array['userRef']['country'] . ' ' . $array['userRef']['zip'];
if (!empty($array['userRef']['address1'] && $array['userRef']['city'] && $array['userRef']['province'] && $array['userRef']['zip'] || $array['userRef']['country'])) {
$CurrentUserAddress = '' . $array['userRef']['address1'] . ', ' . $array['userRef']['city'] . ', ' . $array['userRef']['province'] . ', ' . $array['userRef']['country'] . ' ' . $array['userRef']['zip'];
} else {
$CurrentUserAddress = "";
}
// Check if the decoding was successful
if ($array !== null) {
?>