Add one-time Play premium unlock and extra learning pack - #13
Draft
sondreb wants to merge 2 commits into
Draft
Conversation
Gate extra words, numbers, and sentences behind a one-time polytalk_premium purchase. Android TWA uses Digital Goods plus Payment Request; web shows a Play listing fallback and a documented localStorage development unlock. Co-authored-by: SondreB <sondre@outlook.com>
The last h2 is now the premium card title, so assert Contact by heading text instead of last-of-type. Co-authored-by: SondreB <sondre@outlook.com>
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.
Adds a one-time Google Play unlock for extra learning content. This is not a subscription.
What users get
Purchase path
me.polytalk.twa) enables Bubblewrap Play Billing and uses Chrome Digital Goods + Payment Request for SKUpolytalk_premiumlocalStoragekeypolytalk-premium=1so the user is not asked againlocalStorage.setItem('polytalk-premium', '1')(documented, not a real payment)Still required in Play Console
Sondre still needs to create the one-time product
polytalk_premiumand set the price. Seedocs/play-premium.mdfor high-level Console, license-tester, and local unlock notes.Version was not bumped. A new Android upload will need an
appVersionCodebump when you ship this TWA change.Verification
ng test --watch=false --browsers=ChromeHeadless: 71 passednpx playwright test e2e/polytalk.spec.ts --project=chromium: 22 passed