iKhokha integration complete
This commit is contained in:
@@ -19,6 +19,8 @@ $result = $stmt->get_result();
|
||||
// Fetch single record
|
||||
$membership = $result->fetch_assoc();
|
||||
|
||||
$payment_link = getPaymentLinkByPaymentId($membership['payment_id']);
|
||||
|
||||
// Fetch membership application data using mysqli
|
||||
$query = "SELECT * FROM membership_application WHERE user_id = ?";
|
||||
$stmt = $conn->prepare($query);
|
||||
@@ -186,8 +188,8 @@ if (empty($application['id_number'])) {
|
||||
|
||||
<td><?php echo htmlspecialchars($membership['payment_amount']); ?></td>
|
||||
<td><?php echo htmlspecialchars($membership['payment_id']); ?></td>
|
||||
<?php if ($membership['payment_status'] == "PENDING") { ?>
|
||||
<td><a href='membership_payment' class='theme-btn style-two style-three' style='padding: 0px 14px;'><span data-hover='VIEW PAYMENT INFO'>AWAITING PAYMENT</span></a></td>
|
||||
<?php if ($membership['payment_status'] == "AWAITING PAYMENT") { ?>
|
||||
<td><a href='<?= $payment_link; ?>' class='theme-btn style-two style-three' style='padding: 0px 14px;'><span data-hover='PAY NOW'>PAY NOW</span></a></td>
|
||||
<?php } else { ?>
|
||||
<td><?php echo htmlspecialchars($membership['payment_status']); ?></td>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user