Файл: monst/core/pag/xsolla.php
Строк: 34
<?
include $HOME . '/core/in/conf.php';
include $HOME . '/Xsolla/xsolla-autoloader.php';
use XsollaSDKAPIXsollaClient;
$client = XsollaClient::factory(array(
'merchant_id' => $Xsolla['merchant_id'],
'api_key' => $Xsolla['api_key']
));
$paymentUIToken = $client->createCommonPaymentUIToken($Xsolla['project_id'], $user['name'], $sandboxMode = false);
?>
<div class='padding'>
<?=$lang['game']['xsolla_secretkey_ok']?><br/>
</div>
<br/><br/>
<div style='text-align: center;'>
<button data-xpaystation-widget-open><?=$lang['game']['go_to_xsolla']?></button>
</div>
<br/><br/><br/>
<?php XsollaSDKAPIPaymentUIPaymentUIScriptRenderer::send($paymentUIToken, $isSandbox = false); ?>