🐛 Wire up the broken processPayment logic

While removing the PAYMENT_AUTHORIZATION intent, we also removed the processPayment call from the Google Pay button handler. This change restores the correct payment processing flow
This commit is contained in:
Philipp Stracker 2025-02-26 17:23:16 +01:00
parent 57e91432c7
commit 63dfb167fb
No known key found for this signature in database

View file

@ -589,6 +589,13 @@ class GooglepayButton extends PaymentButton {
.then( initiatePaymentRequest );
this.logGroup();
// If something failed above, stop here. Only continue if we have the paymentData.
if ( ! paymentData ) {
return;
}
return this.processPayment( paymentData );
}
paymentDataRequest() {