total_amount - (int)$order->total_paid), 0); } $paymentLink = \FluentCart\Framework\Support\Arr::get($reminder, 'payment_link', \FluentCart\App\Services\Payments\PaymentHelper::getCustomPaymentLink($order->uuid)); $orderRef = \FluentCart\Framework\Support\Arr::get($reminder, 'order_ref', ''); if (empty($orderRef)) { $orderRef = !empty($order->invoice_no) ? $order->invoice_no : '#' . $order->id; } $bodyText = sprintf( /* translators: %1$s: invoice reference */ esc_html__('This is a friendly reminder that your payment for invoice %1$s is still pending. You can complete it using the button below.', 'fluent-cart'), '' . esc_html($orderRef) . '' ); $ctaText = esc_html__('Complete your payment at your earliest convenience.', 'fluent-cart'); ?>

customer->full_name) ); ?>

[]]); ?>

#id); ?>
render('emails.parts.call_to_action_box', [ 'content' => $ctaText, 'link' => $paymentLink, 'button_text' => __('Complete Payment', 'fluent-cart'), ]);