PHP SDK
i
Official signed merchant client lives at
packages/sdk-php/src/MerchantApiClient.php. Point base_uri at your deployment API root (same host as this docs site uses for examples).require 'MerchantApiClient.php'; $client = new MerchantApiClient( '/api/v1', 'MERCHANT_UUID', 'PAYMENT_API_KEY' // use a TEST key in sandbox ); $result = $client->createPayment([ 'amount' => '10', 'currency' => 'USDT', 'order_id' => 'order-1', 'network' => 'TRC20', 'url_success' => 'https://merchant.example/thanks', 'url_callback' => 'https://merchant.example/webhooks/ULX Pay', ]); // $result['state'] === 0 on success — redirect payer to $result['result']['url']
Always verify webhook signatures on your backend before marking an order paid.