getPaymentMethodText(); // getCustomerDashboardUrl() returns a broken relative path ("/subscription/{uuid}") // when no customer profile page is configured — only render the CTA when the // dashboard base actually exists. $updateMethodUrl = (new \FluentCart\Api\StoreSettings())->getCustomerProfilePage() ? \FluentCart\App\Services\URL::getCustomerDashboardUrl('subscription/' . $subscription->uuid) : ''; ?>

customer->full_name) ); ?>

item_name ), esc_html( $paymentMethodText ) ); } else { printf( /* translators: %1$s is the subscription item name */ esc_html__( 'We were unable to charge your saved payment method for the renewal of %1$s.', 'fluent-cart' ), esc_html( $subscription->item_name ) ); } ?>

' . esc_html( $error ) . '' ); ?>

render('emails.parts.items_table', [ 'order' => $order, 'formattedItems' => $order->order_items, 'heading' => __('Renewal Summary', 'fluent-cart'), ]); if ($updateMethodUrl) : ?>

' . esc_html__( 'Update your payment method', 'fluent-cart' ) . '' ); ?>