blob: b13919578d9b824bf73bd47aea7001d4007ad940 [file] [log] [blame]
swissChilif0cbdc32023-01-05 17:21:38 -05001<?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
9if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11}
12
13echo '= ' . $email_heading . " =\n\n";
14
15printf(
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";
26printf( __( 'The renewal order is as follows:', 'woocommerce-gateway-stripe' ) ) . "\n\n";
27
28echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
29
30/**
31 * Shows the order details table.
32 */
33do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
34
35echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
36
37/**
38* Shows order meta data.
39*/
40do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
41
42/**
43* Shows customer details, and email address.
44*/
45do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
46
47echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
48
49echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );