mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Do not set manual renewal on renewal orders
This commit is contained in:
parent
76737f9b1e
commit
24b29e4e09
1 changed files with 0 additions and 1 deletions
|
@ -528,7 +528,6 @@ class PayPalGateway extends \WC_Payment_Gateway {
|
|||
|
||||
$subscriptions = function_exists( 'wcs_get_subscriptions_for_order' ) ? wcs_get_subscriptions_for_order( $order_id ) : array();
|
||||
foreach ( $subscriptions as $subscription ) {
|
||||
$subscription->set_requires_manual_renewal( true );
|
||||
$subscription->update_meta_data( 'ppcp_subscription', $paypal_subscription_id );
|
||||
$subscription->save();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue