Merge branch 'mattallan-issue/447-wcpay-subscriptions-compat' into trunk

This commit is contained in:
dinamiko 2022-02-25 09:30:08 +01:00
commit 6d48fc013c
2 changed files with 7 additions and 0 deletions

View file

@ -5,6 +5,7 @@
* Fix - Multi-currency broke #481
* Fix - Address information from PayPal shortcut flow not loaded #451
* Fix - WooCommerce as mu-plugin is not detected as active #461
* Fix - Check if PayPal Payments is an available gateway before displaying it on Product/Cart pages #447
* Enhancement - Improve onboarding flow, allow no card processing #443 #508 #510
* Enhancement - Add Germany to supported ACDC countries #459
* Enhancement - Add filters to allow ACDC for countries #437

View file

@ -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>';
}