-
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
Do not open the email input iframe when there is no wcpay as payment method #8116
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: +54 B (0%) Total Size: 1.26 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.
Looks good and tests well, approving. e2e failures doesn't seem relevant to this PR. Just one question on urlencode changes.
@@ -408,7 +408,7 @@ private static function get_init_session_request( $order_id = null, $key = null, | |||
// This uses the same logic as the Checkout block in hydrate_from_api to get the cart and checkout data. | |||
$cart_data = ! $is_pay_for_order | |||
? rest_preload_api_request( [], '/wc/store/v1/cart' )['/wc/store/v1/cart']['body'] | |||
: rest_preload_api_request( [], "/wc/store/v1/order/{$order_id}?key={$key}&billing_email={$billing_email}" )[ "/wc/store/v1/order/{$order_id}?key={$key}&billing_email={$billing_email}" ]['body']; | |||
: rest_preload_api_request( [], "/wc/store/v1/order/" . urlencode( $order_id ) . "?key=" . urlencode( $key ) . "&billing_email=" . urlencode( $billing_email ) )[ "/wc/store/v1/order/" . urlencode( $order_id ) . "?key=" . urlencode( $key ) . "&billing_email=" . urlencode( $billing_email ) ]['body']; |
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.
Are these changes related to the fix?
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.
They are not. Thank you! 😅
8008e3b
to
c631954
Compare
e174f9d
to
b7ccd51
Compare
The |
Fixes #7684
Fixes #8053
Changes proposed in this Pull Request
In this PR, we check the available payment methods on the checkout page. If there's no
woocommerce-payments
, we don't open the login session iframe.Videos
bookings.before.mov
pre-orders.before.mov
bookings.after.mov
pre-orders.after.mov
Testing instructions
Test with WooCommerce Bookings
Test with WooCommerce Pre-Orders
Upon release
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