prevent purchase screen trigger for restricted apps
Description
Previously, when an app was unavailable due to age verification, minimum age requirements, or geo-restrictions, the API returned a purchase needed error. This misleading error code caused App Lounge to open the purchase screen, even for free apps or apps where payment was not the issue
Screenshots
Technical details
Intercept the misleading purchase_needed error code returned by the API for free apps and correctly handle it as a restriction exception (e.g., age or geo-blocking).
Tests
manual: see the video.
Issues
10 commandments of code review
Edited by dev-12