/**
 * This function takes a list of payment objects and returns false if any payment has not been made,
 * or true if all payments have been made.
 *
 * @param paymentList A list of payment objects
 * @return false if any payment is pending, true otherwise
 */
fun verifyPayment(paymentList: List<Map<String, Any>>): Boolean {

    // Iterate through the payment list
    for (payment in paymentList) {
        if (!(payment["is_paid"] as Boolean)) {
            return false  // If any payment is pending, return false
        }
    }
    return true  // If all payments have been made
}
/**
 * This function takes a list of payment objects and returns false if any payment has not been made,
 * or true if all payments have been made.
 *
 * @param paymentList A list of payment objects
 * @return false if any payment is pending, true otherwise
 */
fun verifyPayment(paymentList: List<Map<String, Any>>): Boolean {
/**
 * This function takes a list of payment objects and returns false if any payment has not been made,
 * or true if all payments have been made.
 *
 * @param paymentList A list of payment objects
 * @return false if any payment is pending, true otherwise
 */
fun verifyPayment(paymentList: List<Map<String, Any>>): Boolean {

    // Iterate through the payment list
    for (payment in paymentList) {
        if (!(payment["is_paid"] as Boolean)) {
            return false  // If any payment is pending, return false
        }
    }
    return true  // If all payments have been made
}