Remove redundant authorize call in subscription renewal handler

This commit is contained in:
Himad M 2025-07-21 15:58:52 -04:00
parent a8dfe57165
commit c4db1ac53a
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98

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' );
}