mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +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 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 ) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue