PHP SDK

The crypto payment gateway for PHP

Accept USDT, Bitcoin, Ethereum, TON and 14 coins in any PHP application. Two dependency-free classes: a client and a webhook verifier.

composer require oxialink/oxialink-php

Or download the zip and require the two files - there are no dependencies beyond curl.

Free & MIT licensed14 coins, 6 networksSigned webhooks built in

Create an invoice

use Oxialink\OxialinkClient;

$oxialink = new OxialinkClient('API_KEY', 'API_SECRET');

$invoice = $oxialink->createInvoice([
    'amount' => 10,
    'fiat_currency' => 'USD',
    'coin' => 'USDT_TON',
    'external_id' => 'order-1234',
    'callback_url' => 'https://your-site.com/webhook.php',
]);

header('Location: ' . $invoice['url']);

Verify the payment webhook

use Oxialink\Webhook;

$delivery = Webhook::verifyCurrentRequest('WEBHOOK_SECRET');
// throws OxialinkException on any invalid signature

if ($delivery['event'] === 'payment.completed') {
    markOrderPaid(
        $delivery['data']['external_id'],
        $delivery['data']['tx_hash']
    );
}

Everything the integration needs

No dependencies

Plain PHP 7.4+ with curl. Works in any framework or none at all.

One-line webhook verify

Webhook::verifyCurrentRequest() reads, checks and decodes the delivery, or throws.

external_id passthrough

Pass your order id at creation; every webhook echoes it back. No mapping tables.

Full API surface

Invoices, balances, withdrawals, address validation and Telegram pay buttons.

Hosted checkout

Customers pay on a page with a QR code and a live confirmation count.

No chargebacks

Crypto is final. Orders complete only after real on-chain confirmation.

Fees are flat and public on the fees page. Not on PHP? There is also a WooCommerce plugin, a WHMCS module and a plain REST API.

FAQ

Common questions

Install the oxialink/oxialink-php package (or drop in the two source files), create an invoice with one call, and redirect the customer to the returned URL. A signed webhook tells your server when the payment settles on-chain.

14 coins across 6 networks: USDT on TON, Tron, BSC, Solana and Ethereum, USDC, Bitcoin, Ethereum, Litecoin, Dogecoin, Dash, BNB, TRX and Toncoin.

Every delivery is signed with HMAC-SHA256 over the delivery id, timestamp, event name and the exact bytes of the payload. The SDK verifies the signature and rejects stale deliveries before your code runs, so a forged notification can never mark an order paid.

The SDK is free and MIT licensed. Oxialink accounts are free, and a payment costs 0.2% on Premium or 0.5% free, plus one flat per-coin network fee published at oxialink.com/fees.

First payment in minutes

Free SDK, free account, no KYC to start.

Create a free account