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

First payment in minutes

Free SDK, free account, no KYC to start.

Create a free account