oxialink/oxialink-laravel

Laravel package for the Oxialink crypto payment gateway: config, facade, auto-registered webhook route firing Laravel events.

Maintainers

Package info

github.com/oxialink/laravel

Homepage

pkg:composer/oxialink/oxialink-laravel

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-08-20 04:11 UTC

This package is auto-updated.

Last update: 2026-08-20 04:14:06 UTC


README

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