tly-pay / bagisto
Non-custodial crypto payments for Bagisto 2.4 and 2.5: USDT, USDC, BTC, ETH and more, paid straight to your own wallet
Requires
- php: >=8.3 <8.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-12-04 04:17:42 UTC
README
Crypto payments for Bagisto 2.4 and 2.5. Your customers pay in stablecoins (USDT, USDC, DAI) or coins such as BTC, LTC and ETH, on nine networks, and every payment goes straight to your own wallet: TLY Pay is non-custodial and never holds your funds. There is no percentage fee on sales. Screenshots, requirements and the accepted coins are on the Crypto payments for Bagisto page.
Features
- A Crypto payment method on the Bagisto checkout, with the coin icons you choose.
- The TLY Pay payment window on your checkout page, or the hosted TLY Pay payment page. Both return the customer to your order confirmation once the payment is complete.
- Orders update on their own: paid orders get a paid invoice with the TLY Pay payment ID, unpaid orders are cancelled when the payment expires, and cancelling an order cancels its open payment.
- A Sales > TLY Pay page: connect your account, follow every crypto order with its status, and see partial payments and overpayments that need a look.
- Connect by signing in to TLY Pay and approving: no API keys to copy.
- Works with Buy Now in Bagisto 2.5. Customers need no TLY Pay account.
- Staff access through three permissions: view, reconcile and settings.
Tested with Bagisto 2.5.2 and 2.4.14.
Coins and networks
Customers can pay with the coins your TLY Pay store wallet enables:
| Network | Coins |
|---|---|
| Ethereum | ETH, USDT, USDC, DAI |
| TRON | TRX, USDT |
| BSC | BNB, USDT, USDC, DAI |
| Polygon | POL, USDT, USDC, DAI |
| Base | ETH, USDC, DAI |
| Arbitrum One | ETH, USDT0, USDC, DAI |
| Optimism | ETH, USDT, USDC, DAI |
| Bitcoin | BTC |
| Litecoin | LTC |
What customers and merchants see
Checkout: the customer chooses Crypto payment, shown with the coin icons you select.
Payment window: after Place Order, the customer pays in the TLY Pay window on your checkout page.
Connection and settings: connect your TLY Pay account, then choose the checkout mode and the coin icons with a live preview.
Orders: every crypto order with its payment status, amount and payment ID.
Requirements
- Bagisto 2.4 (Laravel 12, PHP 8.3 or 8.4) or Bagisto 2.5 (Laravel 13, PHP 8.4; from 2.5.1 also PHP 8.5), on its latest patch release. One package serves both.
- PHP with the curl, mbstring and openssl extensions.
- The Laravel scheduler running every minute (
* * * * * php artisan schedule:run). - Each Channel that offers crypto payment served over public HTTPS on the default port.
- The same currency as the Channel's base currency and your TLY Pay store. Crypto payment is hidden for carts in another currency; the package never converts currencies.
- A Laravel session cookie that is not
SameSite=Strict: the payment page's button back to your store is a link from another site. - A TLY Pay account with a receiving wallet.
Install
composer require tly-pay/bagisto php artisan migrate php artisan optimize:clear
Laravel discovers the package; there are no assets to publish. Then:
- In Configure > Sales > Payment Methods > Crypto payment (TLY Pay), check that Status is on and set the Title customers see (up to 40 characters, per Channel and language).
- Open Sales > TLY Pay, choose the Channel and click Connect TLY Pay. Sign in to TLY Pay in the window that opens, check the website and permissions, and approve. The package stores the credentials itself, encrypted with your Laravel application key.
- On the Settings tab, choose Embedded checkout (the default) or Hosted checkout page, and the coin icons shown at checkout.
Upgrade with composer update tly-pay/bagisto, php artisan migrate and php artisan optimize:clear; your connection and settings are kept. Removing the package keeps your orders and
their TLY Pay references.
How orders are updated
TLY Pay sends a signed notification when a payment changes, and the scheduler retries anything that failed for a moment.
| Payment | Bagisto order |
|---|---|
| Paid | Paid invoice and transaction with the TLY Pay payment ID |
| Overpaid | Paid, with a comment to review the difference in TLY Pay |
| Partially paid | Stays pending, with a comment |
| Expired or cancelled | The unpaid order is cancelled and its stock returned |
| Paid after the order was cancelled | A comment for manual review; the order is not reopened |
Cancelling an order in Bagisto, from the admin or by the customer, cancels its TLY Pay payment while it is still open. If a notification was missed, the order's TLY Pay detail shows the live status and Reconcile applies it.
The payment reference shown to the customer is the cart reference cart-<id>: Bagisto numbers the
order only after the payment exists. The TLY Pay order list shows both.
Data sent to TLY Pay
To create a payment the package sends the cart reference, the amount and currency, an installation reference and your shop's return address. It does not send the customer's name, email or address.
Questions
Why is Crypto payment missing at checkout? Check that its Status is on under Configure > Sales > Payment Methods, that the Channel is connected on Sales > TLY Pay (the page says what to do when it needs attention), that the shop runs on public HTTPS and that the cart currency is your TLY Pay store's currency.
Do my customers need a TLY Pay account? No. They pay from their own wallet, such as MetaMask, TronLink or a WalletConnect wallet; Bitcoin and Litecoin are sent to the address or QR code shown.
What does it cost? The package is free and MIT licensed. TLY Pay has its own plans, including a free plan with no time limit for one website, and takes no percentage of your sales.
How do refunds work? The package does not send refunds. Send the refund from your own wallet, then record it in Bagisto.
Can I use it on a copy of my shop? A copy of the database shares the installation reference, so both shops would treat each other's payments as their own. Keep a copy disconnected or connect it to another TLY Pay account.
Support
connect@tlypay.com. The package is a client of the TLY Pay service and needs a TLY Pay account.