Skip to content

[$250] Global Reimbursement incorrectly appears disabled in New Expensify for fully set-up US Corpay bank accounts #96385

Description

@melvin-bot

Action Performed:

  1. 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).
  2. Open Account > Wallet in New Expensify.
  3. Tap the bank account row.
  4. 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 OwnerCurrent Issue Owner: @ShridharGoel

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions