Looking to hire Laravel developers? Try LaraJobs

oxialink-laravel maintained by oxialink

Description
Laravel package for the Oxialink crypto payment gateway: config, facade, auto-registered webhook route firing Laravel events.
Last update
2026/08/20 06:11 (dev-main)
License
Downloads
1

Comments
comments powered by Disqus

Oxialink for Laravel

Accept crypto payments in Laravel with the Oxialink gateway: a configured client, a facade, and a webhook route that verifies signatures and fires a Laravel event.

Install

composer require oxialink/oxialink-laravel
php artisan vendor:publish --tag=oxialink-config

.env:

OXIALINK_API_KEY=ak_...
OXIALINK_API_SECRET=as_...
OXIALINK_WEBHOOK_SECRET=whsec_...

Create an invoice

use Oxialink\Laravel\Facades\Oxialink;

$invoice = Oxialink::createInvoice([
    'amount' => 25,
    'fiat_currency' => 'USD',
    'coin' => 'USDT_TON',
    'external_id' => (string) $order->id,
    'callback_url' => route('oxialink.webhook'),
    'redirect_url' => route('orders.show', $order),
]);

return redirect()->away($invoice['url']);

Handle payments

The package registers POST /oxialink/webhook (configurable) and fires Oxialink\Laravel\Events\OxialinkWebhook for every verified delivery:

use Oxialink\Laravel\Events\OxialinkWebhook;

Event::listen(function (OxialinkWebhook $webhook) {
    if ($webhook->event === 'payment.completed') {
        Order::find($webhook->data['external_id'])?->markPaid($webhook->data['tx_hash']);
    }
});

Signatures are HMAC-SHA256 verified byte-exactly before the event fires; invalid deliveries never reach your code.

Full API reference: https://oxialink.com/api-docs