mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 18:00:15 +08:00
Add gateway_scheduled_payments
support if subscriptions mode is PayPal subscriptions
This commit is contained in:
parent
ba99d942aa
commit
ac74bc0ddb
1 changed files with 2 additions and 0 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue