Skip to content

fix(payment): pin promo-code checkout presentment to USD so the $269 minimum passes (#23299) - #23557

Merged
Git-on-my-level merged 2 commits into
mainfrom
fix/promo-adaptive-pricing-23299
Oct 25, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
fix/promo-adaptive-pricing-23299

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Member

Summary

Disable Stripe Adaptive Pricing on checkout sessions created with a resolved promotion code, pinning presentment to the price's native USD currency.

Stripe evaluates a promotion code's minimum_amount restriction against the checkout session's presentment currency. With Adaptive Pricing enabled, a EUR customer's converted total (e.g. €249 for the $269 Unlimited yearly price) falls below the USD-authored $269 minimum on the Unlimited yearly activation codes, and redemption fails with "code is valid but order total is below the minimum amount" even though the code is valid. With presentment pinned to USD, the minimum passes and the 100%-off first-year coupon applies for any customer.

Scope note: minimal durable fix by design. It does not add a coupon fallback — the upgrade path is repo-contracted to apply promotion codes, never raw coupons, to preserve Stripe-side restrictions and redemption tracking — and it does not change trial handling (#23300 tracks that separately).

Fixes #23299

Failure-Class

Failure-Class: none

Testing

  • New backend/tests/unit/test_payment_promo_adaptive_pricing.py: promo sessions set adaptive_pricing={'enabled': False}; promo-free sessions keep Stripe's default; static contract scopes the pin to the promo branch.
  • Existing backend/tests/unit/test_payment_promotion_codes.py stays green — its no-coupon contract on checkout/upgrade is untouched.
  • Both suites run locally green on this head via the worktree venv; backend CI re-runs them on this PR.

…icing off)

Stripe evaluates a promotion code's minimum_amount restriction against the
checkout session's presentment currency. With Adaptive Pricing enabled, the
converted total (e.g. EUR) falls below the USD-authored $269 minimum on
Unlimited yearly activation codes and a valid code is rejected (#23299).
@Git-on-my-level Git-on-my-level changed the title fix(payment): pin promo-code checkout presentment to USD so the $269 minimum passes (#{23299}) fix(payment): pin promo-code checkout presentment to USD so the $269 minimum passes (#23299) Oct 25, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T03:20:30.524963Z 306a426 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 7fbc4dc into main Oct 25, 2026
70 of 72 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/promo-adaptive-pricing-23299 branch October 25, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unlimited membership promo codes carry a USD $269 minimum, rejected for customers paying in other currencies

1 participant