swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame] | 1 | <?php |
| 2 | /** |
| 3 | * Admin email about payment retry failed due to authentication |
| 4 | * |
| 5 | * @package WooCommerce_Stripe/Templates/Emails |
| 6 | * @version 4.3.0 |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Output the email header. |
| 15 | */ |
| 16 | do_action( 'woocommerce_email_header', $email_heading, $email ); ?> |
| 17 | |
| 18 | <p> |
| 19 | <?php |
| 20 | echo esc_html( |
| 21 | sprintf( |
| 22 | // translators: 1) an order number, 2) the customer's full name, 3) lowercase human time diff in the form returned by wcs_get_human_time_diff(), e.g. 'in 12 hours'. |
| 23 | _x( |
| 24 | 'The automatic recurring payment for order %1$s from %2$s has failed. The customer was sent an email requesting authentication of payment. If the customer does not authenticate the payment, they will be requested by email again %3$s.', |
| 25 | 'In admin renewal failed email', |
| 26 | 'woocommerce-gateway-stripe' |
| 27 | ), |
| 28 | $order->get_order_number(), |
| 29 | $order->get_formatted_billing_full_name(), |
| 30 | wcs_get_human_time_diff( $retry->get_time() ) |
| 31 | ) |
| 32 | ); |
| 33 | ?> |
| 34 | </p> |
| 35 | <p><?php esc_html_e( 'The renewal order is as follows:', 'woocommerce-gateway-stripe' ); ?></p> |
| 36 | |
| 37 | <?php |
| 38 | |
| 39 | /** |
| 40 | * Shows the order details table. |
| 41 | */ |
| 42 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 43 | |
| 44 | /** |
| 45 | * Shows order meta data. |
| 46 | */ |
| 47 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 48 | |
| 49 | /** |
| 50 | * Shows customer details, and email address. |
| 51 | */ |
| 52 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 53 | |
| 54 | /** |
| 55 | * Output the email footer. |
| 56 | */ |
| 57 | do_action( 'woocommerce_email_footer', $email ); |