Repository navigation
Place the order after v6 express Pay Now on block checkout (7032) - #4790
Merged
Merged
Conversation
stracker-phil
marked this pull request as ready for review
October 14, 2026 09:52
stracker-phil
requested review from
AlexP11223,
Dinamiko,
Narek13,
danieldudzic and
mmaymo
as code owners
October 14, 2026 09:52
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. 🔗 Test this pull request with WordPress Playground What's included:
Login credentials:
Plugin Details:
🤖 Auto-generated for commit ff16d73 • Last updated: 2026-10-14T09:54:18.971Z |
Dinamiko
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog:
Fix - PayPal express payments on block checkout now complete the order directly when Pay Now is enabled #4790Description
🐛 The problem
With the v6 SDK and Pay Now enabled, a buyer who pays with the PayPal express button on an empty block checkout form lands on the review page instead of the Order Received page. They must click "Place order" a second time. With the v5 SDK, the order is placed directly.
💡 Why it happens
After approval, the v6 express component sent the PayPal addresses to the server but never put them into the Blocks checkout form. The Store API response strips billing and shipping, so the form stayed empty. The automatic submit then failed validation, and the validation fallback redirected the buyer to the review page.
✅ The fix
V6ExpressComponentnow also writes the PayPal addresses into the Blocks form state (reflectInUi: true) before it submits. v5 already did this, and the v6 review page does the same.🧪 How to verify