Skip to content

fix(next): show relevant stripe error msg#19895

Merged
StaberindeZA merged 1 commit intomainfrom
pay-3460-submanage-error-fix
Jan 22, 2026
Merged

fix(next): show relevant stripe error msg#19895
StaberindeZA merged 1 commit intomainfrom
pay-3460-submanage-error-fix

Conversation

@StaberindeZA
Copy link
Copy Markdown
Contributor

Because

  • Although a specific error message is thrown from the backend, the SubManage stripe payment method page still shows the generic error message.

This pull request

  • Updates the nextjs action service to return the error message instead of the entire Error object. In a production environment, the entire error object could not be passed to the frontend, resulting in the generic error message being shown.
  • Only change the StripeManagementWrapper instanceKey when the default payment method has changed and the component needs to be refreshed.

Issue that this pull request solves

Closes: PAY-3460

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@StaberindeZA StaberindeZA requested a review from a team as a code owner January 15, 2026 19:38
Because:

- Although a specific error message is thrown from the backend, the
  SubManage stripe payment method page still shows the generic error
  message.

This commit:

- Updates the nextjs action service to return the error message instead
  of the entire Error object. In a production environment, the entire
  error object could not be passed to the frontend, resulting in the
  generic error message being shown.
- Only change the StripeManagementWrapper instanceKey when the default
  payment method has changed and the component needs to be refreshed.

Closes #PAY-3460
@StaberindeZA StaberindeZA force-pushed the pay-3460-submanage-error-fix branch from 2bb69c0 to 478c2c0 Compare January 15, 2026 20:32
@StaberindeZA StaberindeZA merged commit efe5936 into main Jan 22, 2026
21 checks passed
@StaberindeZA StaberindeZA deleted the pay-3460-submanage-error-fix branch January 22, 2026 13:07
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.

2 participants