products ) {
return;
}
$payment_class = 'booked_wc_payment_pending';
// if order is available then pull the status from it
if ( $appointment->order_id ) {
if ( $appointment->is_paid ) {
$payment_class = 'booked_wc_payment_completed';
}
$status_text = $appointment->payment_status_text;
} else if ( !$appointment->order_id || $appointment->order_id && !$appointment->is_paid ) {
$status_text = __('Awaiting Payment', 'booked-woocommerce-payments');
}
?>