Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected HTML on the shortcode checkout error message when Link is enabled #3099

Open
a-danae opened this issue Apr 25, 2024 · 0 comments
Open
Labels
component: stripe link Issues related to Stripe Link good first issue The issue is a good candidate for the first community contribution/for a newcomer to the team. type: bug The issue is a confirmed bug.

Comments

@a-danae
Copy link
Contributor

a-danae commented Apr 25, 2024

Describe the bug

When Link is enabled, some unexpected HTML is included in the error message for the required email address field. This is only happening on the shortcode checkout.

To Reproduce

  1. Ensure that the Legacy checkout experience is disabled under the Stripe settings tab, at wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=settings
  2. Ensure Link is enabled under the Payment Methods tab, at wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=methods
  3. Create a page that contains the shortcode checkout, if you don't have one already
  4. As a shopper, add a product to the cart and go to the shortcode checkout page
  5. Ensure that the email address field is empty
  6. Click on Place Order
  7. Notice the error message contains <button class="stripe-gateway-stripelink-modal-trigger"></button>

Expected behavior
The error message must not contain <button class="stripe-gateway-stripelink-modal-trigger"></button>.

@a-danae a-danae added type: bug The issue is a confirmed bug. good first issue The issue is a good candidate for the first community contribution/for a newcomer to the team. component: stripe link Issues related to Stripe Link labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: stripe link Issues related to Stripe Link good first issue The issue is a good candidate for the first community contribution/for a newcomer to the team. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant