Skip to content

Billing 0.1.2: Edit subscriptions, card view for lists and webhook fixes

Billing 0.1.2 lets admins edit a subscription, with Pause, Resume and Cancel on the edit form and a change of plan, and gives every billing list a card view next to the table.

Pausing or cancelling asks for confirmation first, and the message after a cancel now says the subscription will be cancelled at period end. The orders, invoices, transactions, subscriptions, billing profiles and currencies lists now switch between a card and a table layout, and their row actions sit in a dropdown menu instead of inline buttons.

Fixed:

  • Payment provider webhooks now go through PhoenixKit’s API pipeline instead of the app’s api pipeline.
  • Payment methods named a field that did not match their database column (label instead of display_name), and the subscription form hid the resulting error. Both are fixed.
  • A new subscription without a currency used euros; it now uses the default currency from the billing settings.

Other modules that call billing by its older PhoenixKit.Modules.Billing names keep working.

Full release notes: Billing 0.1.2

0.1.2 · 30 March 2026

Added

  • Subscription edit mode with status management (pause/resume/cancel) and plan type change
  • Admin detail/form routes via admin_routes/0 and admin_locale_routes/0
  • table_default component with card/table toggle across all list pages
  • Dropdown menus (table_row_menu) on all list pages replacing inline action buttons
  • Subscription schema fields: plan_name, price, currency, provider, provider_subscription_id, last_renewal_error, belongs_to :user
  • Backward-compatible compat modules for PhoenixKit.Modules.Billing.* namespace
  • Shared SubscriptionHelpers module for status_badge_class/1 and format_interval/2
  • Confirmation dialogs on destructive subscription actions (pause, cancel)

Fixed

  • Webhook routes now use phoenix_kit_api pipeline (was api)
  • PaymentMethod schema field mismatch: label → display_name to match DB column
  • Removed try/rescue blocks in subscription form that were masking the schema mismatch
  • Hardcoded "EUR" fallback in create_subscription now uses billing_default_currency setting
  • Added last_renewal_error to subscription changeset cast list
  • Cancel flash message in edit form now correctly says “will be cancelled at period end”

Changed

  • Refactored admin_locale_routes/0 to share build_admin_routes/1 with admin_routes/0
  • Removed duplicate alias Routes declarations in subscription LiveViews

Billing 0.1.2. Install or update: {:phoenix_kit_billing, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.