🐛 Fix critical typo

This commit is contained in:
Philipp Stracker 2024-08-16 18:54:55 +02:00
parent c007d7909c
commit cf83d2ba6e
No known key found for this signature in database

View file

@ -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 ) => {