Skip to content

fix(foxy-customer): hide payment methods the element can't manage - #293

Open
pheekus wants to merge 1 commit into
mainfrom
fx-815-hide-unsupported-payment-methods
Open

pheekus wants to merge 1 commit into
mainfrom
fx-815-hide-unsupported-payment-methods

Conversation

@pheekus

@pheekus pheekus commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

foxy-customer now hides its payment methods section when the customer has an fx:payment_methods link or has no fx:default_payment_method link. This element manages one default payment method, so those customers don't fit it.

A missing fx:default_payment_method link used to throw on .href and stop the whole customer view rendering. It now reads the link with ?., and the rest of the view renders.

While data is loading, the section shows its loading state as before.

Checks

  • New tests: the section is hidden with an fx:payment_methods link, and hidden without an fx:default_payment_method link while the header and addresses still render. Both fail without the fix.
  • wtr --group foxy-customer: 151 passed.
  • wtr --group foxy-customer-portal: 203 passed.
  • prettier --check, eslint, tsc --noEmit: clean.

Refs FX-815

Hide the payment methods section when the customer has an
`fx:payment_methods` link or no `fx:default_payment_method` link.
A missing default link no longer throws and stops the view rendering.

Refs FX-815

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pheekus
pheekus requested a review from adamjudd November 5, 2026 14:16
@pheekus pheekus self-assigned this Nov 5, 2026
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.

1 participant