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 | echo '= ' . $email_heading . " =\n\n"; |
| 14 | |
| 15 | printf( |
| 16 | // 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'. |
| 17 | _x( |
| 18 | '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.', |
| 19 | 'In admin renewal failed email', |
| 20 | 'woocommerce-gateway-stripe' |
| 21 | ), |
| 22 | $order->get_order_number(), |
| 23 | $order->get_formatted_billing_full_name(), |
| 24 | wcs_get_human_time_diff( $retry->get_time() ) |
| 25 | ) . "\n\n"; |
| 26 | printf( __( 'The renewal order is as follows:', 'woocommerce-gateway-stripe' ) ) . "\n\n"; |
| 27 | |
| 28 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 29 | |
| 30 | /** |
| 31 | * Shows the order details table. |
| 32 | */ |
| 33 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 34 | |
| 35 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 36 | |
| 37 | /** |
| 38 | * Shows order meta data. |
| 39 | */ |
| 40 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 41 | |
| 42 | /** |
| 43 | * Shows customer details, and email address. |
| 44 | */ |
| 45 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 46 | |
| 47 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 48 | |
| 49 | echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); |