require __DIR__ . '/xsolla/xsolla-autoloader.php' ;
use Xsolla\SDK\API\XsollaClient;
$client = XsollaClient::factory(array(
'merchant_id' => 92024,
'api_key' => '575e5ff426b1cf4799d654362a0536d5'
));
$paymentUIToken = $client->createCommonPaymentUIToken(43603, 1, $sandboxMode = true);
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST
https://api.xsolla.com/merchant/v2/merchants/92024... resulted in a `422 Unprocessable Entity` response: { "http_status_code": 422, "message": "JSON is not valid against json schema, please check documentation https:\ (truncated...) in /var/www/client550/data/www/client550.4bo.ru/xsolla/GuzzleHttp/Exception/RequestException.php:113 Stack trace: #0 /var/www/client550/data/www/client550.4bo.ru/xsolla/GuzzleHttp/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 /var/www/client550/data/www/client550.4bo.ru/xsolla/GuzzleHttp/Promise/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 /var/www/client550/data/www/client550.4bo.ru/xsolla/GuzzleHttp/Promise/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 /var/www/client550/data/www/client550.4bo.ru/xsol in /var/www/client550/data/www/client550.4bo.ru/xsolla/Xsolla/SDK/Exception/API/XsollaAPIException.php on line 46