louie-kyc #1

Merged
erwin merged 27 commits from louie-kyc into main 2024-04-19 10:33:46 +08:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit b4ab8221a8 - Show all commits

View File

@ -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) {
?>