Use capture for 3ds in google

This commit is contained in:
carmenmaymo 2025-03-03 15:34:45 +01:00
parent d66a7521f5
commit ca76d33aa3
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
8 changed files with 333 additions and 2 deletions

View file

@ -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 );
} );
};