diff --git a/src/libs/API.js b/src/libs/API.js index 39cda4472386..63b9c1264a0f 100644 --- a/src/libs/API.js +++ b/src/libs/API.js @@ -869,7 +869,7 @@ function BankAccount_Validate(parameters) { function BankAccount_SetupWithdrawal(parameters) { const commandName = 'BankAccount_SetupWithdrawal'; let allowedParameters = [ - 'currentStep', 'policyID', 'bankAccountID', 'useOnfido', 'errorAttemptsCount', + 'currentStep', 'policyID', 'bankAccountID', 'useOnfido', 'errorAttemptsCount', 'enableCardAfterVerified', // data from bankAccount step: 'setupType', 'routingNumber', 'accountNumber', 'addressName', 'plaidAccountID', 'ownershipType', 'isSavings', diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js index b6d7cf18bb31..dbdf71b0b1e3 100644 --- a/src/libs/actions/BankAccounts.js +++ b/src/libs/actions/BankAccounts.js @@ -569,7 +569,16 @@ function setupWithdrawalAccount(data) { let nextStep; Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: true}); - const newACHData = {...reimbursementAccountInSetup, ...data}; + const newACHData = { + ...reimbursementAccountInSetup, + ...data, + + // This param tells Web-Secure that this bank account is from NewDot so we can modify links back to the correct + // app in any communications. It also will be used to provision a customer for the Expensify card automatically + // once their bank account is successfully validated. + enableCardAfterVerified: true, + }; + if (data && !_.isUndefined(data.isSavings)) { newACHData.isSavings = Boolean(data.isSavings); }