PHP SDK
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-phpOr download the zip and require the two files - there are no dependencies beyond curl.
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']);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']
);
}Plain PHP 7.4+ with curl. Works in any framework or none at all.
Webhook::verifyCurrentRequest() reads, checks and decodes the delivery, or throws.
Pass your order id at creation; every webhook echoes it back. No mapping tables.
Invoices, balances, withdrawals, address validation and Telegram pay buttons.
Customers pay on a page with a QR code and a live confirmation count.
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
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.