mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'issue/447-wcpay-subscriptions-compat' of https://github.com/mattallan/woocommerce-paypal-payments into mattallan-issue/447-wcpay-subscriptions-compat
This commit is contained in:
commit
3bfd7346ab
1 changed files with 6 additions and 0 deletions
|
@ -452,6 +452,12 @@ class SmartButton implements SmartButtonInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
$available_gateways = WC()->payment_gateways->get_available_payment_gateways();
|
||||
|
||||
if ( ! isset( $available_gateways['ppcp-gateway'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<div id="ppc-button"></div>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue