Dandelion is a fair source project. View the code on Github · See the design guide

Commits on Mar 23, 2026
a5aeed5

✨ Add evergreen/on-demand event type for courses without fixed dates

Commits on Mar 22, 2026
a025b0d

♻️ Split PaymentMethod into EventPaymentMethod and GatheringPaymentMethod

Refactor payment methods to separate concerns between events and gatherings. The monolithic PaymentMethod class is replaced by two distinct classes, each with their own payment processors, improving maintainability and clarity of the codebase.

e0f03ce

🐛 (tickets.erb): remove "tickets are attached" message when no tickets PDF exists

e5eeb84

♻️ Extract payment handlers into dedicated modules for events and gatherings

45b6465

♻️ Extract duplicated EVM payment logic into reusable runEvmPaymentFlow function

3e7a44f

♻️ Normalize payment API response field names by removing evm_ prefix from value fields

d8bc0e0

♻️ (stripe.rb): rename organisationship variable to revenue_sharer_organisationship for clarity

918e1eb

⚰️ Remove outdated comment from order_currency_for method

60f046b

♻️ Refactor payment condition logic to separate org and event concerns This commit: - Renames condition to event_condition for clarity - Consolidates org_condition checks into available? method to avoid duplication - Simplifies lambda syntax using method references where applicable

bfb2776

♻️ Remove logo and url attributes from PaymentMethod class

Simplify PaymentMethod model by moving logo and URL data directly into the view, eliminating unnecessary attributes and options.

7f693b6

🐛 Fix payment method validation to check availability per event

This change adds a critical available? check in the payment processing flow to ensure payment methods are genuinely available for a specific event before attempting to process payments. The check complements the existing condition validation by providing an additional availability layer that can evaluate dynamic per-event constraints.

082dc3b

♻️ Extract payment method processing logic into separate module files

c7e70ec

♻️ Move order currency logic to PaymentMethod class

Extract currency mapping from helper to allow payment methods to define their own order_currency_for behavior

80e2868

♻️ (payment_methods.rb): refactor to compute organisationship once instead of calling it multiple times

The event.revenue_sharer_organisationship method was being called twice in the same method. Moved the assignment earlier and removed the duplicate call to improve performance and code clarity.

1758e6f

♻️ Extract payment handling logic into separate module

59f0032

♻️ (payment methods): Extract payment method views into dynamic partials

  • Move pay_with_opencollective and pay_with_evm to separate partials
  • Add partial attribute to PaymentMethod class for dynamic rendering
  • Fix evm condition to check event.chain exists before accessing properties
a6aeada

♻️ Refactor payment processing by moving logic into PaymentMethod class

Move payment processing logic from helper methods to individual PaymentMethod objects using lambda functions. This encapsulates payment behavior within each payment method, improving maintainability and reducing coupling with the controller.

9226559

♻️ Refactor payment methods into a centralized configuration class

Instead of hardcoding payment methods across views, helpers, and JavaScript, introduce a PaymentMethod class that encapsulates all payment method configuration (name, labels, conditions, logos, URLs). This eliminates duplication and makes adding new payment methods straightforward.

Key changes: - Extract payment method definitions to lib/payment_methods.rb - Refactor views to iterate over PaymentMethod.all instead of hardcoding - Replace case statement in process_payment with dynamic method dispatch - Simplify JavaScript button visibility logic using grouped selectors - Update organisation model to use PaymentMethod for payment_method? checks

Commits on Mar 21, 2026
9bd258a

⬆️ (Gemfile.lock): upgrade bcrypt and json dependencies

cbcc22b

👷 (CI): add concurrency controls and actions:read permissions to workflows