Skip to content

Conversation

@jayaddison
Copy link
Contributor

@jayaddison jayaddison commented Aug 28, 2025

As described in #1844, the Wise API has been updated and we need to update our codebase accordingly.

An open question is whether our BankAccount records for Wise accounts should use the same account-per-currency design model as our Stripe accounts. Currently, they still do, but I would like to explore whether it would make sense to consolidate to a single account ID (on which we could, for example, populate all of sort-code, account-number, SWIFT and IBAN).

Creating this pull request as a draft, initially.

Resolves #1844.

@jayaddison jayaddison changed the title payments: begin updating Wise implementation to match API updates payments: update Wise implementation to match API changes Aug 28, 2025
@jayaddison jayaddison marked this pull request as ready for review August 30, 2025 10:30
account.bankDetails.bankAddress.country,
]
)
bank_name, _, bank_address = bank_info.partition("\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it might come back to bite us at some point - perhaps we should remove the institution column from BankAccount and just throw this all in the address field.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this does seem fragile. However: it does seem useful in the admin UI (and perhaps elsewhere?) to have a small descriptive text field with the institution name alone.

I'll think about it some more. Another option could be to add validation logic so that we detect any likely breakage early.

@jayaddison jayaddison marked this pull request as ready for review September 10, 2025 09:59
@jayaddison jayaddison requested a review from russss September 10, 2025 10:04
NB: Redacts a few Cloudflare/Envoy, cookie, etc-related response headers
@jayaddison jayaddison force-pushed the issue-1844/wise-api-updates branch from ab1a647 to 4bba914 Compare December 14, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wise API breakage

2 participants