mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
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:
commit
5df206e89a
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue