Fixed missing authorization in purchase verification#2767
Merged
vytisbulkevicius merged 3 commits intodevelopmentfrom Mar 31, 2026
Merged
Fixed missing authorization in purchase verification#2767vytisbulkevicius merged 3 commits intodevelopmentfrom
vytisbulkevicius merged 3 commits intodevelopmentfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Ensures purchase verification only grants access to content for the Stripe product(s) actually paid for in the Checkout Session (issue #270).
Changes:
- Fetches Checkout Session line items and derives the set of paid Stripe product IDs.
- Validates the
product_idfrom thesuccess_urlagainst the paid product IDs before persisting purchase data. - Aborts saving customer/purchase metadata when the requested product does not match what was purchased.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 7027094 is ready 🛎️!
|
Contributor
E2E TestsPlaywright Test Status: Performance ResultsserverResponse: {"q25":416.7,"q50":421.5,"q75":449.1,"cnt":10}, firstPaint: {"q25":329.8,"q50":353.9,"q75":402.7,"cnt":10}, domContentLoaded: {"q25":1571.9,"q50":1584.2,"q75":1602.8,"cnt":10}, loaded: {"q25":1572.2,"q50":1584.55,"q75":1603,"cnt":10}, firstContentfulPaint: {"q25":3281.1,"q50":3305.05,"q75":3318.7,"cnt":10}, firstBlock: {"q25":6602.6,"q50":6619.95,"q75":6659.7,"cnt":10}, type: {"q25":12.54,"q50":12.76,"q75":13.1,"cnt":10}, typeWithoutInspector: {"q25":11.45,"q50":11.63,"q75":12.31,"cnt":10}, typeWithTopToolbar: {"q25":15.68,"q50":16.81,"q75":17.48,"cnt":10}, typeContainer: {"q25":6.98,"q50":7.45,"q75":8.09,"cnt":10}, focus: {"q25":50.4,"q50":50.85,"q75":53.94,"cnt":10}, inserterOpen: {"q25":17.25,"q50":18.26,"q75":19.5,"cnt":10}, inserterSearch: {"q25":5.45,"q50":5.66,"q75":5.92,"cnt":10}, inserterHover: {"q25":2.39,"q50":2.5,"q75":2.73,"cnt":20}, loadPatterns: {"q25":1084.48,"q50":1111.63,"q75":1217.22,"cnt":10}, listViewOpen: {"q25":83.17,"q50":89.72,"q75":95.25,"cnt":10} |
Soare-Robert-Daniel
approved these changes
Mar 30, 2026
Contributor
|
🎉 This PR is included in version 3.1.8 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Closes https://github.com/Codeinwp/otter-internals/issues/270
Summary
Get the Stripe product ID from the price ID to get only the granted content based on the selected product.
Checklist before the final review