mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Set subscription manual renewal
This commit is contained in:
parent
fe73de45ad
commit
76737f9b1e
1 changed files with 1 additions and 0 deletions
|
@ -528,6 +528,7 @@ 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