feat: Add enableProductPurchaseLegacyApi option to disable legacy IAP validation#10228
Conversation
…AP validation Add server option to control the legacy product purchase API (`_Product` class and `/validate_purchase` endpoint). The option defaults to `true` for backward compatibility and is immediately deprecated. The entire feature will be removed in a future major version.
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThis pull request introduces deprecation infrastructure for the legacy product purchase API. A new configuration option Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10228 +/- ##
=======================================
Coverage 92.60% 92.60%
=======================================
Files 192 192
Lines 16322 16324 +2
Branches 199 200 +1
=======================================
+ Hits 15115 15117 +2
Misses 1190 1190
Partials 17 17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# [9.6.0-alpha.33](9.6.0-alpha.32...9.6.0-alpha.33) (2026-03-17) ### Features * Add `enableProductPurchaseLegacyApi` option to disable legacy IAP validation ([#10228](#10228)) ([622ee85](622ee85))
|
🎉 This change has been released in version 9.6.0-alpha.33 |
Issue
Add server option
enableProductPurchaseLegacyApito control the legacy product purchase API (_Productclass and/validate_purchaseendpoint). The option defaults totruefor backward compatibility and is immediately deprecated. The entire feature will be removed in a future major version.Tasks
Summary by CodeRabbit
Documentation
enableProductPurchaseLegacyApito control the legacy API behavior.Tests