From e9f269bb8336849956bed21e56a0ca28e406b0b8 Mon Sep 17 00:00:00 2001
From: frosso <francesco.rosso@automattic.com>
Date: Thu, 7 Nov 2024 13:05:35 +0100
Subject: [PATCH] hmmm better, I guess

---
 includes/class-wc-payments-order-success-page.php | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/includes/class-wc-payments-order-success-page.php b/includes/class-wc-payments-order-success-page.php
index 24e99e81eb0..78b9d6fc12a 100644
--- a/includes/class-wc-payments-order-success-page.php
+++ b/includes/class-wc-payments-order-success-page.php
@@ -127,9 +127,18 @@ public function show_woopay_payment_method_name( $order ) {
 	 * @return string|false
 	 */
 	public function show_lpm_payment_method_name( $gateway, $payment_method ) {
+		$method_logo_url = apply_filters_deprecated(
+			'wc_payments_thank_you_page_bnpl_payment_method_logo_url',
+			[
+				$payment_method->get_payment_method_icon_for_location( 'checkout', false, $gateway->get_account_country() ),
+				$payment_method->get_id(),
+			],
+			'8.5.0',
+			'wc_payments_thank_you_page_lpm_payment_method_logo_url'
+		);
 		$method_logo_url = apply_filters(
 			'wc_payments_thank_you_page_lpm_payment_method_logo_url',
-			$payment_method->get_payment_method_icon_for_location( 'checkout', false, $gateway->get_account_country() ),
+			$method_logo_url,
 			$payment_method->get_id()
 		);