🐛 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 checkPayPalApproval = async ( orderId ) => {
const confirmationData = {
orderId,
paymentMethodData: paymentData.paymentMethodData,
};
const confirmOrderResponse = await widgetBuilder.paypal const confirmOrderResponse = await widgetBuilder.paypal
.Googlepay() .Googlepay()
.confirmOrder( { .confirmOrder( confirmationData );
orderId,
paymentMethodData: paymentData.paymentMethodData,
} );
this.log( 'confirmOrder', confirmOrderResponse ); this.log( 'confirmOrder', confirmOrderResponse );
return 'APPROVE' === confirmOrderResponse?.status; return 'APPROVED' === confirmOrderResponse?.status;
}; };
const approveOrderServerSide = async ( orderID ) => { const approveOrderServerSide = async ( orderID ) => {