Add Crypto Payments to Laravel
To take bitcoin and stablecoins in a Laravel app, with no approval necessary, add OpenReceive: free, open-source payment software that runs inside your app and pays straight into your own wallet. It's a Composer package built the Laravel way, and a coding agent sets it up from OpenReceive's agent directions.
The Steps
- Copy the agent directions. On openreceive.org/laravel, click Copy link under Agent directions.
- Paste them into your coding agent. In your Laravel app's folder, tell your agent "This is a Laravel app. Enable Bitcoin and stablecoin payments with OpenReceive. Follow these directions:" and paste the link.
- Give it a receive-only wallet code. It asks for one before it installs anything. In Rizful, open the menu, then NWC Codes, and copy the receive-only code. In Alby Hub, your own Lightning node, it's Connections, Add Connection, Read Only. Either way, the code can take payments in but never spend them. For USDT, USDC, SOL and ETH, it then asks for a swap provider's code.
- Buy something. When the agent says setup is finished, open an order: the checkout offers Bitcoin over Lightning, plus USDT, USDC, SOL and ETH above each coin's minimum.
What It Adds to Your App
- One Composer package,
openreceive/laravel, for Laravel 11, 12 or 13 on PHP 8.2 or later withext-gmp. Its routes mount at/openreceivein your app's web middleware, so they use your own session and your own Eloquent models, and Laravel keeps your users and orders. - One Host class with three hooks, which the agent writes for your own order model:
authorizedecides who may pay,amountForsays how much, andonPaidmarks your order paid. OpenReceive does the rest: the invoices, checking for payment, and the checkout itself. - A boot check. In production the package checks your wallet code when the app boots, so a missing code, an unreachable wallet or a code that can spend stops the deploy, not a customer's checkout.
- Stablecoins. A customer who picks USDT chooses a network and gets a quote from the swap provider; they send the stablecoin, the swap provider pays the Lightning invoice, and it lands in your wallet as bitcoin. The swap's fee is fixed into the quote.
We Filmed It
On December 1, 2026 we gave OpenReceive's Laravel agent directions, word for word, to a fresh coding agent on a small Laravel shop (five widgets, from one to seven US dollars). It installed OpenReceive 0.6.6, wrote the three hooks and added the checkout to the order page, and OpenReceive's own check passed. A real one-dollar order was then paid over Lightning from our Alby Hub: 1,651 sats, straight into our Rizful wallet. Sats are short for satoshis, the smallest unit of bitcoin: there are a hundred million satoshis in a bitcoin.
The same day, a seven-dollar order paid in USDT on Solana was quoted at 7.39 USDT, with the swap and network fees (0.39 USDT) shown before paying. We didn't send it.
What It Costs
OpenReceive is open source and free. Receiving into Rizful is free too. A stablecoin payment costs the customer the swap provider's fee, fixed into its quote.