Add GooglePay mini-cart support

Refactor GooglePay
This commit is contained in:
Pedro Silva 2023-08-29 14:19:27 +01:00
parent 37ef761e0f
commit b955fc648e
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
5 changed files with 249 additions and 245 deletions

View file

@ -134,8 +134,6 @@ class Button implements ButtonInterface {
$button_enabled_payorder = $is_googlepay_button_enabled;
$button_enabled_minicart = $is_googlepay_button_enabled && $this->settings_status->is_smart_button_enabled_for_location( 'mini-cart' );
/**
* Param types removed to avoid third-party issues.
*
@ -212,7 +210,7 @@ class Button implements ButtonInterface {
add_action(
$render_placeholder,
function () {
$this->googlepay_button( 'ppc-button-googlepay-container-minicart' );
echo '<span id="ppc-button-googlepay-container-minicart"></span>';
},
21
);