mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🐛 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:
parent
57e91432c7
commit
63dfb167fb
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue