Action Performed:
- Have a US business bank account that is fully set up / enabled for Global Reimbursement (i.e. set up outside of the NewDot API onboarding flow).
- Open Account > Wallet in New Expensify.
- Tap the bank account row.
- Review the Global Reimbursement status.
Expected Result:
New Expensify recognizes the account's existing Global Reimbursement configuration and reflects it as enabled, matching Expensify Classic.
Actual Result:
Global Reimbursement appears as not enabled in New Expensify (the "Enable global reimbursements" button is shown), even though the account is enabled for Global Reimbursement in Classic.
Root cause / proposed direction:
The button is gated here:
|
const shouldShowEnableGlobalReimbursementsButton = |
|
paymentMethod.selectedPaymentMethod?.additionalData?.currency === CONST.CURRENCY.USD && |
|
paymentMethod.selectedPaymentMethod.type === CONST.BANK_ACCOUNT.TYPE.BUSINESS && |
|
!paymentMethod.selectedPaymentMethod?.additionalData?.corpay?.achAuthorizationForm && |
|
paymentMethod.selectedPaymentMethod?.state === CONST.BANK_ACCOUNT.STATE.OPEN; |
The condition depends on additionalData.corpay.achAuthorizationForm. That field is only populated when the bank account was added through the NewDot API onboarding flow, so accounts that were fully set up another way don't have it — causing NewDot to treat an already-enabled account as not enabled.
We want to update the check to look at additionalData.verifications.corpay instead of additionalData.corpay.achAuthorizationForm, consistent with how Classic determines Corpay status.
Platforms:
New Expensify Website
Version Number:
v9.4.33-8
Related:
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ShridharGoel
Action Performed:
Expected Result:
New Expensify recognizes the account's existing Global Reimbursement configuration and reflects it as enabled, matching Expensify Classic.
Actual Result:
Global Reimbursement appears as not enabled in New Expensify (the "Enable global reimbursements" button is shown), even though the account is enabled for Global Reimbursement in Classic.
Root cause / proposed direction:
The button is gated here:
App/src/pages/settings/Wallet/WalletPage/index.tsx
Lines 427 to 431 in fd467ee
The condition depends on
additionalData.corpay.achAuthorizationForm. That field is only populated when the bank account was added through the NewDot API onboarding flow, so accounts that were fully set up another way don't have it — causing NewDot to treat an already-enabled account as not enabled.We want to update the check to look at
additionalData.verifications.corpayinstead ofadditionalData.corpay.achAuthorizationForm, consistent with how Classic determines Corpay status.Platforms:
New Expensify Website
Version Number:
v9.4.33-8
Related:
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ShridharGoel