Repository navigation
feat: paywall experiments, refunds, attribution + Play every-region pricing - #214
Draft
therajanmaurya wants to merge 18 commits into
Draft
therajanmaurya wants to merge 18 commits into
therajanmaurya wants to merge 18 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
…/com/mobilebytelabs/paycraft/web/PayCraftWeb.kt cmp-paycraft-web/src/jsTest/kotlin/com/mobilebytelabs/paycraft/web/CoreParityTest.kt
…ql supabase/tests/205_product_type_one_time_test.sql
…ilebytelabs/paycraft/config/SuiteConfig.kt cmp-paycraft-core/src/commonMain/kotlin/com/mobilebytelabs/paycraft/model/Product.kt cmp-paycraft-core/src/commonTest/kotlin/com/mobilebytelabs/paycraft/tree/CanonicalRoleFallbackTest.kt
…ilebytelabs/paycraft/PayCraft.kt cmp-paycraft-core/src/commonMain/kotlin/com/mobilebytelabs/paycraft/analytics/PayCraftEvent.kt cmp-paycraft-core/src/commonMain/kotlin/com/mobilebytelabs/paycraft/config/SuiteConfig.kt
…ilebytelabs/paycraft/config/ExperimentAssignmentTest.kt dashboard/app/(dashboard)/paywall/page.tsx dashboard/components/sidebar.tsx
…/cmp-paycraft-core.klib.api
….tsx dashboard/tests/server-surfaces.spec.ts infra/deploy/PAYCRAFT_DEPLOY.md
…ilebytelabs/paycraft/config/Experiment.kt cmp-paycraft-core/src/commonTest/kotlin/com/mobilebytelabs/paycraft/config/ExperimentAssignmentTest.kt dashboard/lib/experiments.ts
….test.ts dashboard/lib/googleplay-product-sync.ts
…telabs/paycraft/ui/PaywallFunnelTracker.kt cmp-paycraft/src/commonTest/kotlin/com/mobilebytelabs/paycraft/ui/PaywallFunnelEventsTest.kt dashboard/__tests__/lib/inapp-product-sync.test.ts
….test.ts dashboard/lib/googleplay-inapp-sync.ts dashboard/lib/googleplay-product-sync.ts
….test.ts dashboard/__tests__/lib/pricing-template.test.ts dashboard/__tests__/lib/products-pricing-write.test.ts
…dashboard/__tests__/lib/products-pricing-write.test.ts dashboard/app/api/v1/products/[id]/pricing/route.ts
…stripe-route-helper.ts dashboard/__tests__/lib/trial-rule.test.ts
…dashboard/app/api/v1/products/[id]/retire/route.ts dashboard/lib/googleplay-product-sync.ts
…dashboard/app/api/v1/products/[id]/retire/route.ts
…rite Plain-string value_props made the SDK reject the whole /config, so apps sat on a stale cached catalogue (Status Saver showed the retired premium-quarterly plan). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Summary
Adds paywall A/B experiments, App Store refund (consumption request) answers and ad-attribution forwarding, and fixes the Google Play checkout failures: subscriptions and one-time products were priced in only 14 regions, so most buyers got
product_not_found. Also adds a post-deploy end-to-end check that runs in every production deploy.Changes
Google Play sync
pricing:convertRegionPrices. Prices the operator set win over converted ones, and existing one-time region prices are kept unchanged.Paywall experiments
/paywall/experimentspage and API, and/configserving the experiment.App Store refunds: migration 207, an answer to
CONSUMPTION_REQUEST, and a "Refund requests" view on the App Store provider page.Attribution: migration 208, the
attribution-idsfunction, GA4 and AppsFlyer settings, and the SDKAttributionIdsSync.SDK
value_propsare served as SDK triples.Other: product type
one_time(205), product retire, pricing writes and templates, the trial rule, and Stripe session fixes.Deploy
infra/deploy/e2e.shruns in deploy phase 6. It covers the SQL tests, experiment config and events, attribution auth, and the Apple notification guard.NEXT_PUBLIC_APP_ENV, and the smoke test asserts/api/healthenv.Verification
E2E FAILS=0.🤖 Generated with Claude Code