From 3cd6f992663eeab063910b3f0abe2b967c408bd8 Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 27 Nov 2023 16:16:19 +0200 Subject: [PATCH] Keep default "Place order" button text in continuation --- modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php index 7d8ae3d04..297198ba9 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php @@ -275,8 +275,9 @@ class PayPalGateway extends \WC_Payment_Gateway { if ( $order && ( $order->status()->is( OrderStatus::APPROVED ) || $order->status()->is( OrderStatus::COMPLETED ) ) ) { - $this->title = $this->funding_source_renderer->render_name( $funding_source ); - $this->description = $this->funding_source_renderer->render_description( $funding_source ); + $this->title = $this->funding_source_renderer->render_name( $funding_source ); + $this->description = $this->funding_source_renderer->render_description( $funding_source ); + $this->order_button_text = null; } }