Merge pull request #2959 from woocommerce/PCP-4070-wc-subscriptions-next-payment-date-not-updating-when-processing-a-renewal-order

WC Subscriptions Next Payment date not updating when processing a renewal order (4070)
This commit is contained in:
Emili Castells 2025-01-23 10:50:41 +01:00 committed by GitHub
commit 5df206e89a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,8 @@ class RenewalHandler {
public function process( array $subscriptions, string $transaction_id ): void {
foreach ( $subscriptions as $subscription ) {
if ( $this->is_for_renewal_order( $subscription ) ) {
$subscription->update_status( 'on-hold' );
$renewal_order = wcs_create_renewal_order( $subscription );
if ( is_a( $renewal_order, WC_Order::class ) ) {
$this->logger->info(