mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Use capture for 3ds in google
This commit is contained in:
parent
d66a7521f5
commit
ca76d33aa3
8 changed files with 333 additions and 2 deletions
|
@ -14,6 +14,7 @@ const initiateRedirect = ( successUrl ) => {
|
|||
};
|
||||
|
||||
const onApprove = ( context, errorHandler ) => {
|
||||
console.log( 'onApprove' );
|
||||
return ( data, actions ) => {
|
||||
const canCreateOrder =
|
||||
! context.config.vaultingEnabled || data.paymentSource !== 'venmo';
|
||||
|
@ -48,7 +49,6 @@ const onApprove = ( context, errorHandler ) => {
|
|||
} );
|
||||
}
|
||||
|
||||
const orderReceivedUrl = approveData.data?.order_received_url;
|
||||
initiateRedirect( orderReceivedUrl || context.config.redirect );
|
||||
} );
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue