-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: remove 'test mode' badge from shortcode checkout #9800
fix: remove 'test mode' badge from shortcode checkout #9800
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: -531 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @frosso!
Block-based checkout is indeed unaltered ✅
Shortcode doesn't add labels to payment gateway radio inputs anymore ✅
Screen.Recording.2024-11-25.at.12.10.39.mov
Email content is correct (the below screenshot comes from the purchase with the shortcode checkout) ✅
* develop: Wait for Stripe js to load before using it (#9770) Remove redundant stripe payment elements mount for pay for order (#9813) Enforce proper return types for methods get_order_from_event_body (#9761) Update phpcompatibility to develop version to get sniffs for PHP 8 (#9697) Enable ECE Tracks Events when WooPay is disabled (#9793) chore: rename PRB constants to ECE (#9768) Amend changelog entries for release 8.5.1 fix: remove 'test mode' badge from shortcode checkout (#9800) Update version and add changelog entries for release 8.5.1
Fixes #9779
Changes proposed in this Pull Request
It has been noted that the way the "test mode" badge is applied on shortcode is breaking some sites email templates and possibly causing incompatibility with some other plugins.
Reverting all the changes to the "test mode" badge in shortcode.
We'll need to find a different solution than to change the
get_title()
method on the card gateway.Reverting changes to these files:
client/checkout/classic/event-handlers.js
client/checkout/classic/style.scss
includes/class-wc-payment-gateway-wcpay.php
tests/e2e-pw/specs/shopper/klarna-checkout-purchase.spec.ts
I cherry-picked the changes from these PRs:
get_title()
method to add the "Test mode" badgeget_title()
method aboveget_title()
method to add additional markup and make the "test mode" badge appear only when the payment method was selected on the checkout pageTesting instructions
E2E tests run: https://github.com/Automattic/woocommerce-payments/actions/runs/12007054058
Failures seem similar to the ones on
develop
.npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge