Allow PayPal gateway for saved credit cards

This commit is contained in:
dinamiko 2021-02-16 11:52:39 +01:00
parent 6bfb8b2c2a
commit a280a19ec1

View file

@ -79,7 +79,10 @@ class DisableGateways {
}
if ( $this->is_credit_card() ) {
return array( CreditCardGateway::ID => $methods[ CreditCardGateway::ID ] );
return array(
CreditCardGateway::ID => $methods[ CreditCardGateway::ID ],
PayPalGateway::ID => $methods[ PayPalGateway::ID ],
);
}
return array( PayPalGateway::ID => $methods[ PayPalGateway::ID ] );
}