Skip to content

PhoenixKit 1.7.4: Subscriptions, payment providers and sitemap fixes

PhoenixKit 1.7.4 extends the Billing module with subscriptions and payment provider settings, keeps orders in step with their invoices, and stops the sitemap from listing addresses that return 404.

Billing gets Subscription Plans and a subscriptions list in the admin, plus a Payment Providers page with keys for Stripe, PayPal and Razorpay and a webhook address for each. When an invoice is fully paid, its order is marked paid and takes the payment method; a full refund marks the order refunded. The invoice print shows refunds and the payment history.

The sitemap now lists static, entity and post pages in the default language only, skips blog posts with no file in a language, and sends an ETag. Automatic entity address patterns are now off by default, so entities need real routes to appear.

Upgrading

Run mix phoenix_kit.update to apply migration V33, which adds the tables for payment methods, plans, subscriptions, provider settings and webhook events.

Full release notes: PhoenixKit 1.7.4

1.7.4 · 17 December 2025

Sitemap Improvements

  • Translation filtering - Blog posts without translation files are excluded from sitemap for that language
  • Default language only - Static, Entities, and Posts sources generate URLs only for default language (prevents 404s)
  • Disable auto_pattern - Changed sitemap_entities_auto_pattern default to false (entities require real routes)
  • Async regeneration - PubSub broadcast for real-time UI updates after regeneration
  • ETag caching - Add ETag headers to sitemap controller for HTTP caching
  • UI cleanup - Remove non-functional source toggles, improve layout

Billing Improvements

  • Auto status sync - Orders auto-confirm when invoice is fully paid
  • Refund handling - Mark order as refunded and invoice as void on full refund
  • Payment method sync - Update order payment_method from invoice transaction
  • Invoice print - Add refund information and payment history
  • V33 migration fix - Make payment_method nullable for draft orders

Other Changes

  • Update beamlab_countries dependency to 1.0.4
  • Hide suggested VAT rate when it matches current rate

PhoenixKit 1.7.4. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.