mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
🐛 Fix critical typo
This commit is contained in:
parent
c007d7909c
commit
cf83d2ba6e
1 changed files with 7 additions and 5 deletions
|
@ -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 ) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue