Skip to content

fix(my-account): activate first payment method on load#4463

Merged
miguelpeixe merged 1 commit intoreleasefrom
hotfix/my-account-payment-method-display
Feb 9, 2026
Merged

fix(my-account): activate first payment method on load#4463
miguelpeixe merged 1 commit intoreleasefrom
hotfix/my-account-payment-method-display

Conversation

@miguelpeixe
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

NPPM-2600

If the site has multiple payment gateways, the modal renders the available options. The first item is selected, but the content remains hidden. It only appears after selecting another option and then back.

This PR ensures the first option of the accordion is active.

How to test the changes in this Pull Request:

  1. While on release, configure 2 payment gateways and visit My Account -> Payment Information
  2. Click to "Add Payment Method" and confirm the issue
  3. Checkout this branch, refresh the page, and click the button
  4. Confirm the first option is selected, and its content is visible
  5. Click the other payment gateway and confirm it behaves as expected

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@miguelpeixe miguelpeixe self-assigned this Feb 6, 2026
@miguelpeixe miguelpeixe added the [Status] Needs Review The issue or pull request needs to be reviewed label Feb 6, 2026
@miguelpeixe miguelpeixe requested a review from a team as a code owner February 6, 2026 20:38
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Feb 9, 2026
@miguelpeixe miguelpeixe merged commit 680a48e into release Feb 9, 2026
17 checks passed
@miguelpeixe miguelpeixe deleted the hotfix/my-account-payment-method-display branch February 9, 2026 15:03
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Hey @miguelpeixe, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Feb 9, 2026
## [6.30.2](v6.30.1...v6.30.2) (2026-02-09)

### Bug Fixes

* **my-account:** activate first payment method on load ([#4463](#4463)) ([680a48e](680a48e))
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🎉 This PR is included in version 6.30.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Feb 9, 2026
# [6.31.0-alpha.2](v6.31.0-alpha.1...v6.31.0-alpha.2) (2026-02-09)

### Bug Fixes

* **my-account:** activate first payment method on load ([#4463](#4463)) ([680a48e](680a48e))
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🎉 This PR is included in version 6.31.0-alpha.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

miguelpeixe pushed a commit that referenced this pull request Feb 9, 2026
## [6.30.2](v6.30.1...v6.30.2) (2026-02-09)

### Bug Fixes

* **my-account:** activate first payment method on load ([#4463](#4463)) ([680a48e](680a48e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-changelog [Status] Approved The pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants