Download the PHP package telegram-bot-essentials/billing without Composer
On this page you can find all versions of the php package telegram-bot-essentials/billing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download telegram-bot-essentials/billing
More information about telegram-bot-essentials/billing
Files in telegram-bot-essentials/billing
Package billing
Short Description Invoices, payments and a pluggable gateway registry for telegram-bot-essentials/essence
License MIT
Informations about the package billing
Telegram Bot Essentials — Billing
Invoices, payment attempts, a pluggable gateway registry, and currency conversion on top of
telegram-bot-essentials/essence.
Billing does not talk to any payment provider itself — that's what
gateway-card and
gateway-zibal are for. It
defines the contract they implement, plus the invoice lifecycle and admin UI everything
else plugs into.
Depends on telegram-bot-essentials/settings.
Installation
Usage
Make your sellable thing an Order:
Create and drive an invoice:
Status transitions always go through markAsPaid() / markAsFailed() / markAsPending(),
never a raw update(), so each one fires its event and runs in the correct webhook context
even when triggered from a gateway's server-to-server callback.
Gateway packages register themselves into gateways(); the member-facing InvoiceFeature
renders a "choose a payment method" screen from whatever is registered. When
user-management is installed,
Billing adds a per-payable-type revenue breakdown to the user-list header.
MarkOverdueInvoicesAsFailed runs hourly — make sure Laravel's scheduler
(schedule:run via cron, or schedule:work) is running in production.
Documentation
Full documentation — the Order / HasInvoice / PaymentAttempt contracts, the gateway
registry, currency conversion, and the revenue stats block — lives on the Telegram Bot
Essentials documentation site under Modules → Billing.
License
MIT.
All versions of billing with dependencies
brick/math Version >=0.14.2 <1.0
laravel/framework Version ^12 || ^13
telegram-bot-essentials/essence Version ^0.18
telegram-bot-essentials/settings Version ~0.0.17