From ac74bc0ddb799b909da4300a8ebf2cb083c9318a Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Mon, 11 Mar 2024 15:55:53 +0100 Subject: [PATCH] Add `gateway_scheduled_payments` support if subscriptions mode is PayPal subscriptions --- modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php index 73afb085b..5c3418d86 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php @@ -259,6 +259,8 @@ class PayPalGateway extends \WC_Payment_Gateway { 'subscription_payment_method_change_admin', 'multiple_subscriptions' ); + } elseif ( $this->config->has( 'subscriptions_mode' ) && $this->config->get( 'subscriptions_mode' ) === 'subscriptions_api' ) { + $this->supports[] = 'gateway_scheduled_payments'; } elseif ( $this->config->has( 'vault_enabled_dcc' ) && $this->config->get( 'vault_enabled_dcc' ) ) { $this->supports[] = 'tokenization'; }