Billing
v0.27.0Orders, invoices, subscriptions and payments via Stripe, PayPal, Razorpay, EveryPay
Install BillingOrders, invoices, receipts, subscriptions and payments for a PhoenixKit app, with Stripe, PayPal, Razorpay and EveryPay behind one provider behaviour using hosted checkout. Subscriptions are kept in your own database and renewed by the module rather than the provider. It stores billing profiles, currencies, orders, invoices, transactions, subscriptions, saved payment methods and webhook events.
Use it when
- You sell plans or one-off orders and need invoices and receipts generated from them
- You want recurring billing controlled in your database instead of in Stripe or PayPal
What it gives you
- Order to invoice to receipt workflow with status tracking and print views
- Stripe, PayPal, Razorpay and EveryPay hosted checkout
- Subscription plans with automatic renewals, trials and dunning
- Currencies with exchange rates; billing profiles with tax ID and IBAN validation
- Transaction ledger with credit notes and partial refunds
- Admin pages under /admin/billing; user pages My Orders and Billing Profiles
Example
{:ok, type} = Billing.create_subscription_type(%{
name: "Pro Monthly",
slug: "pro-monthly",
interval: "month",
price: Decimal.new("19.99"),
currency: "EUR"
})
Billing news
Nothing posted about Billing yet. Read its changelog or see all PhoenixKit news.
Install
1
Add to mix.exs
{:phoenix_kit_billing, "~> 0.27"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_billing
- Releases
-
- 0.27.0
- 0.26.0
- 0.25.0
- Admin
-
/admin/billing - Used by
- E-commerce Warehouse
- Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Commerce.
E-commerce
Products, categories, cart, checkout and shipping, paid through Billing
Needs Billing
Warehouse
Stock per item and location, with receipts, issues, transfers and stocktakes
Needs Billing, AI, Catalogue, Comments, Locations
Bookings
Day/night stays, fixed slots and free-form reservations in one model
No other modules needed
Catalogue
Product catalogues with manufacturers, suppliers, categories, items and pricing
Needs AI, Entities
Manufacturing
A machines reference book with machine types and a dashboard
Needs Comments, Entities, Locations
Referrals
Referral codes with limits, usage tracking and signup integration
No other modules needed