From b37d8cf838127a682d60c532e2729136af482955 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Mon, 12 Aug 2024 18:52:02 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Improve=20some=20code=20comments?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modules/ppcp-googlepay/resources/js/GooglepayButton.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/ppcp-googlepay/resources/js/GooglepayButton.js b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
index 15594bcef..4b267c4e7 100644
--- a/modules/ppcp-googlepay/resources/js/GooglepayButton.js
+++ b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
@@ -84,6 +84,8 @@ class GooglepayButton extends PaymentButton {
*/
#transactionInfo = null;
+ googlePayConfig = null;
+
/**
* @inheritDoc
*/
@@ -120,6 +122,9 @@ class GooglepayButton extends PaymentButton {
ppcpConfig,
contextHandler
) {
+ // Disable debug output in the browser console:
+ // buttonConfig.is_debug = false;
+
super(
context,
externalHandler,
@@ -244,7 +249,7 @@ class GooglepayButton extends PaymentButton {
}
init() {
- // Stop, if the button is already initialized.
+ // Use `reinit()` to force a full refresh of an initialized button.
if ( this.isInitialized ) {
return;
}