From cf83d2ba6efa6e254ba508939f675121f4cf2401 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Fri, 16 Aug 2024 18:54:55 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20critical=20typo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ppcp-googlepay/resources/js/GooglepayButton.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/modules/ppcp-googlepay/resources/js/GooglepayButton.js b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
index d518c1850..d8a910f34 100644
--- a/modules/ppcp-googlepay/resources/js/GooglepayButton.js
+++ b/modules/ppcp-googlepay/resources/js/GooglepayButton.js
@@ -573,16 +573,18 @@ class GooglepayButton extends PaymentButton {
};
const checkPayPalApproval = async ( orderId ) => {
+ const confirmationData = {
+ orderId,
+ paymentMethodData: paymentData.paymentMethodData,
+ };
+
const confirmOrderResponse = await widgetBuilder.paypal
.Googlepay()
- .confirmOrder( {
- orderId,
- paymentMethodData: paymentData.paymentMethodData,
- } );
+ .confirmOrder( confirmationData );
this.log( 'confirmOrder', confirmOrderResponse );
- return 'APPROVE' === confirmOrderResponse?.status;
+ return 'APPROVED' === confirmOrderResponse?.status;
};
const approveOrderServerSide = async ( orderID ) => {