obananapay_admin/users/delete-kyc.php

23 lines
510 B
PHP
Raw Permalink Normal View History

<?php
include '../functions-test.php';
2024-03-07 14:23:47 +08:00
if (isset($_GET['kycID'])) {
$kycID = $_GET['kycID'];
// Delete KYC info
2024-03-07 14:23:47 +08:00
$response = delete_kyc_info($kycID);
// Check if deletion was successful
if ($response) {
// Redirect back to users-kyc.php
header("Location: users-kyc.php");
exit();
} else {
// Handle error (if needed)
echo "Error deleting KYC info.";
}
} else {
// Handle case where userID is not provided
echo "Invalid request.";
}