From c4db1ac53aa3e428dae76bf631677e65fd96b0f6 Mon Sep 17 00:00:00 2001 From: Himad M Date: Mon, 21 Jul 2025 15:58:52 -0400 Subject: [PATCH] Remove redundant authorize call in subscription renewal handler --- modules/ppcp-wc-subscriptions/src/RenewalHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-subscriptions/src/RenewalHandler.php b/modules/ppcp-wc-subscriptions/src/RenewalHandler.php index 986d0271a..6c331571b 100644 --- a/modules/ppcp-wc-subscriptions/src/RenewalHandler.php +++ b/modules/ppcp-wc-subscriptions/src/RenewalHandler.php @@ -516,7 +516,7 @@ private function handle_paypal_order( \WC_Order $wc_order, Order $order ): void $this->add_paypal_meta( $wc_order, $order, $this->environment ); if ( $order->intent() === 'AUTHORIZE' ) { - $order = $this->order_endpoint->authorize( $order ); + // No authorize call needed - vault tokens auto-authorize during order creation. $wc_order->update_meta_data( AuthorizedPaymentsProcessor::CAPTURED_META_KEY, 'false' ); }