Merge branch 'louie-kyc' of https://code.obanana.io/Obanana.Corporation/obananapay_admin into louie-kyc
This commit is contained in:
commit
6f81ba765a
|
@ -22,8 +22,8 @@ $BearerToken = $_SESSION['token'];
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-default">
|
<nav class="navbar navbar-default">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-brand">Verify KYCs</a>
|
<header> VERIFY YOUR KYCs </header>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -37,8 +37,11 @@ $BearerToken = $_SESSION['token'];
|
||||||
$response = get_kyc_info($IDkyc, $BearerToken);
|
$response = get_kyc_info($IDkyc, $BearerToken);
|
||||||
$array = json_decode($response, true);
|
$array = json_decode($response, true);
|
||||||
|
|
||||||
|
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'];
|
$CurrentUserAddress = '' . $array['userRef']['address1'] . ', ' . $array['userRef']['city'] . ', ' . $array['userRef']['province'] . ', ' . $array['userRef']['country'] . ' ' . $array['userRef']['zip'];
|
||||||
|
} else {
|
||||||
|
$CurrentUserAddress = "";
|
||||||
|
}
|
||||||
// Check if the decoding was successful
|
// Check if the decoding was successful
|
||||||
if ($array !== null) {
|
if ($array !== null) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue