| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var \FluentCart\App\Models\Order $order |
| 5 |
* @var \FluentCart\App\Models\Subscription $subscription |
| 6 |
* @var string $error Gateway failure reason |
| 7 |
*/ |
| 8 |
?> |
| 9 |
|
| 10 |
<div class="space_bottom_30"> |
| 11 |
<p> |
| 12 |
<?php |
| 13 |
printf( |
| 14 |
/* translators: %1$s is the renewal order number, %2$s is the customer's full name */ |
| 15 |
esc_html__( 'The automatic renewal charge for renewal #%1$s (customer: %2$s) failed.', 'fluent-cart' ), |
| 16 |
esc_html( $order->invoice_no ?: $order->id ), |
| 17 |
esc_html( $order->customer->full_name ) |
| 18 |
); |
| 19 |
?> |
| 20 |
</p> |
| 21 |
|
| 22 |
<?php if (!empty($error)): ?> |
| 23 |
<p> |
| 24 |
<?php |
| 25 |
printf( |
| 26 |
/* translators: %1$s is the payment failure reason reported by the payment provider */ |
| 27 |
esc_html__( 'Reason: %1$s', 'fluent-cart' ), |
| 28 |
'<em>' . esc_html( $error ) . '</em>' |
| 29 |
); |
| 30 |
?> |
| 31 |
</p> |
| 32 |
<?php endif; ?> |
| 33 |
|
| 34 |
<p> |
| 35 |
<?php esc_html_e( 'The gateway will retry the charge on its own schedule.', 'fluent-cart' ); ?> |
| 36 |
</p> |
| 37 |
</div> |
| 38 |
|
| 39 |
<?php |
| 40 |
|
| 41 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 42 |
'order' => $order, |
| 43 |
'formattedItems' => $order->order_items, |
| 44 |
'heading' => __('Renewal Summary', 'fluent-cart'), |
| 45 |
]); |
| 46 |
|