Skip to content

[Due for payment 2026-12-02] [$250] [Exploratory] Wallet - Error appear after transfer to the Business bank account #92371

Todo

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.3.90-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-36581/folder/13176725/41237085/1453337804?sort=%2Bidentifier
Email or phone of affected tester (no customers): leungbratt6+p2p@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Windows 10/Chrome
App Component: User Settings

Action Performed:

Preconditions: User has a Business bank account and enable wallet
The user has received an amount of money from the other user to Pay with Wallet

  1. Open the NewDot app
  2. Navigate to account - Wallet
  3. Click on the Transfer - select the Business bank account (1111)
  4. Click on the Transfer button

Expected Result:

No error appears

Actual Result:

Error: Auth TransferWalletBalance returned an error

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7168687_1780325190033.wallet.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7168687

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @Krishna2323

Activity

  1. applause-bot commented on Jun 2, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/14dc877d3943df7f3e204ed964940d75af90187462d6ec24ea6ca585cdef9300

  2. added
    Internal
    on Jun 2, 2026
  3. changed the title [-][Exploratory] 92180 - Wallet - Error appear after transfer to the Business bank account[/-] [+][Exploratory] Wallet - Error appear after transfer to the Business bank account[/+] on Jun 2, 2026
  4. added
    Bug
    on Jul 17, 2026
  5. MelvinBot commented on Jul 17, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    When transferring the wallet balance, the frontend picks which API parameter carries the destination ID based on the account type — but it only treats a personal bank account as a bank account. Everything else (including a business bank account) is sent as a debit card.

    In transferWalletBalance (src/libs/actions/PaymentMethods.ts:344-349):

    const paymentMethodIDKey =
        paymentMethod.accountType === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT ? CONST.PAYMENT_METHOD_ID_KEYS.BANK_ACCOUNT : CONST.PAYMENT_METHOD_ID_KEYS.DEBIT_CARD;

    A business bank account has accountType === 'businessBankAccount' (CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT), which is not PERSONAL_BANK_ACCOUNT, so the ternary falls to the else branch and sends the account's methodID under fundID (the debit-card key) instead of bankAccountID. Auth receives a fundID that maps to no debit card, so TransferWalletBalance fails with Auth TransferWalletBalance returned an error.

    This is exactly why the transfer works for a personal bank account (sends bankAccountID) but fails for a business bank account.

    What changes do you think we should make in order to solve the problem?

    Flip the condition so only a debit card uses fundID, and any bank account (personal or business) uses bankAccountID:

    const paymentMethodIDKey =
        paymentMethod.accountType === CONST.PAYMENT_METHODS.DEBIT_CARD ? CONST.PAYMENT_METHOD_ID_KEYS.DEBIT_CARD : CONST.PAYMENT_METHOD_ID_KEYS.BANK_ACCOUNT;
    Verification & notes
    • Confirmed accountType on the selected method flows straight from the bank account object via formatPaymentMethods and is persisted by saveWalletTransferAccountTypeAndID in TransferBalancePage.tsx, so a business bank account carries businessBankAccount at the call site.
    • Related (worth a look while fixing, but not the cause of this error): the transfer-method type in TransferBalancePage.tsx:146 also only maps PERSONAL_BANK_ACCOUNT to ACH, so a business bank account currently gets the INSTANT (fee) path. Confirm the intended fee/tier behavior for business bank accounts.
    • Quick scan found no existing open duplicate for this specific error.

    What alternative solutions did you explore? (Optional)

    Alternatively, check membership against both bank-account types (PERSONAL_BANK_ACCOUNT or BUSINESS_BANK_ACCOUNT) to select bankAccountID. The debit-card-only check above is simpler and future-proof against new bank-account types.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/92371) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  6. added
    External
    on Jul 17, 2026
  7. added
    Help Wanted
    on Jul 17, 2026
  8. melvin-bot commented on Jul 17, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @ChavdaSachin (External)

  9. 76 remaining items

  10. added
    Daily
    and removed
    Reviewing
    Weekly
    on Nov 25, 2026
  11. changed the title [-][$250] [Exploratory] Wallet - Error appear after transfer to the Business bank account[/-] [+][Due for payment 2026-12-02] [$250] [Exploratory] Wallet - Error appear after transfer to the Business bank account[/+] on Nov 25, 2026
  12. melvin-bot commented on Nov 25, 2026

    @melvin-bot

    ⚠️ Failed to process issue for release 9.5.53-3

    Details
    Github\Exception\RuntimeException
    
  13. expensify-chore-bot commented on Nov 30, 2026

    @expensify-chore-bot

    @mukhrr Huh... This is 4 days overdue. Who can take care of this?

  14. added
    Awaiting Payment
    on Dec 1, 2026
  15. expensify-chore-bot commented on Dec 1, 2026

    @expensify-chore-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. expensify-chore-bot commented on Dec 1, 2026

    @expensify-chore-bot

    Payment Summary

    • Contributor: @s77rt does not require payment (Contractor)
    • Reviewer: @mukhrr owed $250 via NewDot
    • Reviewer: @Krishna2323 owed $250 via NewDot

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  17. mallenexpensify commented on Dec 3, 2026

    @mallenexpensify
    Contributor

    Matt's AI agent:

    Prep notes for the CM. This is not a payment approval. Do not request payment until the CM posts the final amount.

    Waiting on C+ checklist from @Krishna2323.

    Job price: $250.

    • mukhrr (Contributor): 100%, via NewDot
    • Krishna2323 (C+): 100%, via NewDot

    Price basis: Help Wanted.

    Next: wait for the C+ checklist.

    Evidence
    • No C+ checklist on the issue. No TestRail case.
    • Resolving PR 107201: mukhrr, merged 2026-11-23, approved by Krishna2323 and iwiznia. No revert. Production 2026-11-25.
    • No deploy blockers.

    PAYPREP v1

  18. mallenexpensify commented on Dec 4, 2026

    @mallenexpensify
    Contributor

    @Krishna2323 plz complete the Contributor+ checklist and tag me in a post once you have. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternalInternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions