Skip to content

Add promo-code-gated offline payments - #1366

Open
halcycon wants to merge 1 commit into
HiEventsDev:developfrom
halcycon:feature/promo-gated-offline-payments
Open

halcycon wants to merge 1 commit into
HiEventsDev:developfrom
halcycon:feature/promo-gated-offline-payments

Conversation

@halcycon

Copy link
Copy Markdown

Summary

  • Add event setting offline_payment_availability (EVERYONE | PROMO_CODE_ONLY) and promo-code flag allows_offline_payment
  • Centralise eligibility in OfflinePaymentEligibilityService and enforce it in TransitionOrderToOfflinePaymentHandler
  • Expose offline_payment_available on the public order resource and gate checkout UI accordingly; organiser settings/promo forms updated

Test plan

  • Enable Offline + Stripe; leave availability as Everyone — offline option visible for all checkouts
  • Switch to Promo code only — offline hidden without a promo code; transition API rejects
  • Apply ordinary promo code — still no offline option / API rejects
  • Apply promo with “Allows offline payment” — offline visible; Stripe still available; transition succeeds
  • Discount-none / max-uses-1 access code works as invoice unlock
  • Unit: OfflinePaymentEligibilityServiceTest

Made with Cursor

Allow events to restrict offline payment to authorised promo codes,
with backend eligibility enforcement and checkout UI gated on the
public order flag.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
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.

1 participant