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