Download the PHP package telegram-bot-essentials/gateway-admin without Composer
On this page you can find all versions of the php package telegram-bot-essentials/gateway-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download telegram-bot-essentials/gateway-admin
More information about telegram-bot-essentials/gateway-admin
Files in telegram-bot-essentials/gateway-admin
Package gateway-admin
Short Description One-click admin payment gateway for telegram-bot-essentials/billing
License MIT
Informations about the package gateway-admin
Telegram Bot Essentials — Gateway: Admin
A one-click "pay as admin" gateway for
telegram-bot-essentials/billing.
Every invoice gets a 👑 Pay as admin button that only users holding the
gateway-admin.payments.manage ability see (the app's Gate decides who holds
it). Pressing it settles the invoice at once: no money moves, the invoice is
marked paid through the normal InvoicePaid flow, and an AdminPaymentAttempt
records which admin paid it and for how much.
Use it to grant a service for free, compensate a member, or settle an invoice paid outside the bot.
Installation
No config and no settings: the provider registers the gateway and its callback query.
How it behaves
- The button shows on every invoice an admin views, including their own purchases, next to every other gateway.
- A double tap pays once: the invoice row is locked and an already-paid invoice answers "This invoice is already paid." instead.
- Each payment is written to the audit log (
Paid invoice #12 of 150000 as admin). - A consuming app that refunds orders can tell an admin-paid invoice by its payment attempt
(
$invoice->paymentAttempt instanceof AdminPaymentAttempt) and skip crediting money that was never received.
Testing
All versions of gateway-admin with dependencies
brick/math Version ^0.14.2 || ^0.15 || ^0.16 || ^0.17 || ^0.18 || ^0.19
laravel/framework Version ^12 || ^13
telegram-bot-essentials/billing Version ~0.0.38
telegram-bot-essentials/essence Version ^0.19.0-beta.2@beta