Merge pull request #3543 from woocommerce/PCP-1575-fix-already-authorized

Remove redundant authorize call in subscription renewal handler (1575)
This commit is contained in:
Niklas Gutberlet 2025-08-04 19:25:00 +02:00 committed by GitHub
commit 4f64b4fa0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -516,7 +516,7 @@ class RenewalHandler {
$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' );
}