Skip to content

Commit 00da47f

Browse files
authored
Fix missing recipient for Payment Auth Requested email (#3676)
* Fix missing recipient for Payment Auth Requested email * Add changelog and readme entries
1 parent cb16c6a commit 00da47f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 9.1.0 - xxxx-xx-xx =
4+
* Fix - Show default recipient for Payment Authentication Requested email.
45
* Fix - Correctly handles IPP failed payments webhook calls by extracting the order ID from the payment intent metadata.
56
* Fix - Fix ECE crash in classic cart and checkout pages for non-English language sites.
67
* Fix - Correctly handles UK postcodes redacted by Apple Pay.

includes/compat/class-wc-stripe-email-failed-authentication-retry.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ public function __construct() {
3636
$this->template_plain = 'emails/plain/failed-renewal-authentication-requested.php';
3737
$this->template_base = plugin_dir_path( WC_STRIPE_MAIN_FILE ) . 'templates/';
3838

39-
$this->recipient = $this->get_option( 'recipient', get_option( 'admin_email' ) );
40-
4139
// We want all the parent's methods, with none of its properties, so call its parent's constructor, rather than my parent constructor.
4240
WC_Email::__construct();
41+
42+
// Set after calling the parent constructor, so it is not overriden.
43+
$this->recipient = $this->get_option( 'recipient', get_option( 'admin_email' ) );
4344
}
4445

4546
/**

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111111
== Changelog ==
112112

113113
= 9.1.0 - xxxx-xx-xx =
114+
* Fix - Show default recipient for Payment Authentication Requested email.
114115
* Fix - Correctly handles IPP failed payments webhook calls by extracting the order ID from the payment intent metadata.
115116
* Fix - Fix ECE crash in classic cart and checkout pages for non-English language sites.
116117
* Fix - Correctly handles UK postcodes redacted by Apple Pay.

0 commit comments

Comments
 (0)