mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
✨ Use gateway’s “is_available” flag
This commit is contained in:
parent
e99910117d
commit
4b8bec84d4
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class AxoBlockPaymentMethod extends AbstractPaymentMethodType {
|
|||
* {@inheritDoc}
|
||||
*/
|
||||
public function is_active() : bool {
|
||||
return true;
|
||||
return $this->gateway->is_available();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue