Skip to content

feat: pollen-first pricing + localized currency on the top-up slider - #11348

Closed
ElliotEtag wants to merge 14 commits into
mainfrom
codex/pollen-pack-discounts-11346
Closed

feat: pollen-first pricing + localized currency on the top-up slider#11348
ElliotEtag wants to merge 14 commits into
mainfrom
codex/pollen-pack-discounts-11346

Conversation

@ElliotEtag

@ElliotEtag ElliotEtag commented May 28, 2026

Copy link
Copy Markdown
Contributor

Implements #11346: show pack prices in Pollen and flip the displayed price to the buyer's local currency.

  • Slider now leads with the Pollen amount; a per-buyer local price (e.g. ≈ €9.30) appears below it, derived from Stripe FX Quotes mid-market rates with the country from CF-IPCountry. Unmapped countries fall back to the USD price. Checkout stays USD-native + Adaptive Pricing, so the slider price is a labelled estimate.
  • Learns the real Adaptive Pricing markup per currency from completed purchases (EMA in KV), recorded off the credit path via waitUntil; 4% cold-start default until the first sale in a currency. Mid-market rate cached hourly.
  • Dev-only ?country= override to preview localized pricing on localhost (ignored in production).
  • Pollen-frames the remaining stray $ copy in README.md and the polli-cli skill.

Out of scope (separate PR): pack discount pricing and field/logic renames. The bonus pricing model is unchanged.

Checks: npx biome check, npx vitest run test/fx-quotes.test.ts test/pollen-packs.test.ts test/integration/stripe.test.ts (110 pass).

Fixes #11346

Co-authored-by: ElliotEtag <36901823+ElliotEtag@users.noreply.github.com>

Fixes #11346
@pollinations-ai pollinations-ai Bot added this to Dev May 28, 2026
@pollinations-ai pollinations-ai Bot added the DEV-FEATURE New functionality request label May 28, 2026
@github-project-automation github-project-automation Bot moved this to To Do in Dev May 28, 2026
show the buyer's local-currency estimate on the pack slider using stripe
mid-market rates plus a per-currency adaptive-pricing markup learned from
real purchases (ema in kv, recorded off the credit path), with a 4%
cold-start default. dev-only ?country= override for local preview.
@ElliotEtag ElliotEtag changed the title feat: show pollen pack discounts feat: pollen pack discounts + localized currency pricing May 28, 2026
ElliotEtag and others added 4 commits May 28, 2026 23:20
- move the discount label outside the price pill
- bold the local-currency price
- drop the "p" suffix and enlarge the rail tick numbers
- de-bold the auto top-up tooltip, keeping only the heading and threshold emphasized
@ElliotEtag
ElliotEtag marked this pull request as ready for review May 28, 2026 21:43
…r ui

- restore bonusPollen pricing (discount ladder deferred to a separate PR)
- keep FX-quote localized prices + AP markup learning (derive from amountUsd)
- slider keeps pollen-first layout; badge back to +N% bonus
- pollen-frame stray $ copy in README and polli-cli skill
@ElliotEtag ElliotEtag changed the title feat: pollen pack discounts + localized currency pricing feat: pollen-first pricing + localized currency on the top-up slider May 30, 2026
@voodoohop

Copy link
Copy Markdown
Member
  • Current checkout is USD-native and relies on Stripe Adaptive Pricing. Closing this superseded local-currency implementation; thanks for the exploration.

@voodoohop voodoohop closed this Aug 20, 2026
@github-project-automation github-project-automation Bot moved this from To Do to Done in Dev Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV-FEATURE New functionality request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Show prices in pollen instead of $ + flip to local currency instead of $

3 participants