From 429568fbd9a1024399fe22d7369f0bb5726a4a83 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Wed, 7 Aug 2024 14:45:08 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Minor=20cleanup?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/js/modules/Renderer/PaymentButton.js | 4 ----
modules/ppcp-googlepay/resources/js/GooglepayButton.js | 2 --
modules/ppcp-googlepay/src/Assets/Button.php | 3 +--
3 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/modules/ppcp-button/resources/js/modules/Renderer/PaymentButton.js b/modules/ppcp-button/resources/js/modules/Renderer/PaymentButton.js
index 8275d1ee4..9e1def508 100644
--- a/modules/ppcp-button/resources/js/modules/Renderer/PaymentButton.js
+++ b/modules/ppcp-button/resources/js/modules/Renderer/PaymentButton.js
@@ -503,9 +503,5 @@ export default class PaymentButton {
this.#button.remove();
}
this.#button = null;
-
- const wrapper = this.wrapperElement;
-
- wrapper.innerHTML = '';
}
}
diff --git a/modules/ppcp-googlepay/resources/js/GooglepayButton.js b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
index ec0f4bd7a..af4d977d5 100644
--- a/modules/ppcp-googlepay/resources/js/GooglepayButton.js
+++ b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
@@ -50,8 +50,6 @@ class GooglepayButton extends PaymentButton {
'ppc-button-ppcp-googlepay'
);
- console.log( ppcpConfig.button, buttonConfig.button );
-
const styles = combineStyles( ppcpConfig.button, buttonConfig.button );
if ( 'buy' === styles.MiniCart.type ) {
diff --git a/modules/ppcp-googlepay/src/Assets/Button.php b/modules/ppcp-googlepay/src/Assets/Button.php
index 2f87a487d..575def21f 100644
--- a/modules/ppcp-googlepay/src/Assets/Button.php
+++ b/modules/ppcp-googlepay/src/Assets/Button.php
@@ -339,13 +339,12 @@ class Button implements ButtonInterface {
/**
* Outputs an inline CSS style that hides the Google Pay gateway (on Classic Checkout).
- * The style is removed by `GooglepayButton.js` once the eligibility of the payment method
+ * The style is removed by `PaymentButton.js` once the eligibility of the payment method
* is confirmed.
*
* @return void
*/
protected function hide_gateway_until_eligible() : void {
-
?>