Merge pull request #514 from woocommerce/merge-mattallan-issue/447

Update changelog and merge mattallan-issue/447
This commit is contained in:
Emili Castells 2022-02-25 09:46:59 +01:00 committed by GitHub
commit ed40129c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>';
}