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
apipipeline. - Payment methods named a field that did not match their database column (
labelinstead ofdisplay_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/0andadmin_locale_routes/0 table_defaultcomponent 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
SubscriptionHelpersmodule forstatus_badge_class/1andformat_interval/2 - Confirmation dialogs on destructive subscription actions (pause, cancel)
Fixed
- Webhook routes now use
phoenix_kit_apipipeline (wasapi) - PaymentMethod schema field mismatch:
label→display_nameto match DB column - Removed
try/rescueblocks in subscription form that were masking the schema mismatch - Hardcoded
"EUR"fallback increate_subscriptionnow usesbilling_default_currencysetting - Added
last_renewal_errorto subscription changeset cast list - Cancel flash message in edit form now correctly says “will be cancelled at period end”
Changed
- Refactored
admin_locale_routes/0to sharebuild_admin_routes/1withadmin_routes/0 - Removed duplicate
alias Routesdeclarations 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.