orboni / bagisto-payment
Crypto payments for Bagisto through Orboni: USDT, USDC, Bitcoin, Ethereum and more, paid straight to your own wallets on Orboni's payment page.
Requires
- php: ^8.2
- illuminate/support: ^13.0
- orboni/orboni-php: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Crypto payments for Bagisto through Orboni: buyers pay with USDT, USDC, BTC, ETH and other coins on Orboni's payment page, and the money goes straight to your own wallets. Orboni never holds it.
- Bagisto 2.5 (Laravel 13, PHP 8.4).
- Prices in USD, EUR, GBP and 34 other currencies; Orboni turns them into coins at the rate of the day.
- The order is marked paid by a signed webhook, when the buyer comes back to your store, or by the scheduled check, whichever comes first.
Install
composer require orboni/bagisto-payment php artisan migrate php artisan optimize:clear
Laravel finds the package by itself. Then, in the admin:
- Open Configure → Sales → Payment Methods → Orboni (crypto).
- Paste your Secret key from the Orboni dashboard (Developers → API keys):
sk_test_…to try it,sk_live_…for real payments. Save. Crypto now shows at checkout. - In the Orboni dashboard, under Developers → Webhooks, add an endpoint with the Webhook address the settings show and the
checkout.session.*events, and paste its signing secret (whsec_…) into Webhook signing secret. Save. - Make sure Laravel's scheduler runs (
* * * * * php artisan schedule:runin your cron, as Bagisto asks anyway): every ten minutes it reads back payments still on their way, in case a webhook was lost, and cancels orders left unpaid.
Then place an order with it, and on its payment page, signed in to the Orboni dashboard, press Simulate payment: the order is invoiced and moves to Processing. Swap in your live key and the live endpoint's secret when you are ready.
How an order moves
- At the last step of checkout the buyer chooses Crypto and places the order: it is made at once as Pending Payment (the stock is held for it, Bagisto sends its order email), and the buyer goes to Orboni's payment page.
- Paid in full and final on the chain: invoiced, Processing, with the payment among the order's transactions and a comment naming the coin and the network.
- On the chain but not final yet, held for your review in the Orboni dashboard, or part paid: a comment; the order stays Pending Payment.
- The buyer leaves the payment page without paying: the page is closed, the order cancelled, and their cart comes back to pay another way.
- The page runs out with nothing paid: a comment, and the order is cancelled after the hours set in the settings (24 by default; 0 keeps it).
- Money that paid an order left the chain (a reorganisation): back to Pending Payment, with a comment saying not to ship.
An order cancelled in the admin closes its payment page, so money that still comes is held for your review in the Orboni dashboard instead of paying it.
The secret key and the signing secret are kept with Bagisto's other settings and never shown again once saved: leave a field empty to keep it. Errors go to Laravel's log; keys and secrets never do.
Support
support@orboni.com · orboni.com/docs/bagisto
License
MIT (see LICENSE).