get_id();
$customer_name = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name();
$customer_email = $order->get_billing_email();
$total = $order->get_total();
$currency = $order->get_currency();
$method_label = $order->get_meta( '_afridirect_method_label' ) ?: __( 'N/A', 'afridirect-payment' );
$proof_url = $order->get_meta( '_afridirect_proof_url' );
$proof_attachment_id = $order->get_meta( '_afridirect_proof_attachment_id' );
$order_status = $order->get_status();
$review_status = $order->get_meta( '_afridirect_review_status' );
$date_created = $order->get_date_created();
$date_formatted = $date_created ? $date_created->date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) : '';
// Get proof link.
$proof_link = '';
if ( $proof_attachment_id ) {
$proof_link = wp_get_attachment_url( $proof_attachment_id );
} elseif ( $proof_url ) {
$proof_link = $proof_url;
}
// Status badge.
$status_labels = array(
'on-hold' => __( 'On Hold', 'afridirect-payment' ),
'pending' => __( 'Pending', 'afridirect-payment' ),
'adp-pending' => __( 'AfriDirect Pending', 'afridirect-payment' ),
'adp-proof' => __( 'Proof Uploaded', 'afridirect-payment' ),
'processing' => __( 'Processing', 'afridirect-payment' ),
'failed' => __( 'Failed', 'afridirect-payment' ),
);
$status_class = 'afridirect-status-' . $order_status;
$status_label = isset( $status_labels[ $order_status ] ) ? $status_labels[ $order_status ] : ucfirst( $order_status );
?>
|
#get_order_number() ); ?>
|
|
$currency ) ) ); ?>
|
|
|
|
|
|