mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add GooglePay mini-cart support
Refactor GooglePay
This commit is contained in:
parent
37ef761e0f
commit
b955fc648e
5 changed files with 249 additions and 245 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue