try
{
$response = $client->createPayment(
array(
'amount' => array(
'value' => $sys_order_summa,
'currency' => 'RUB'
),
'confirmation' => array(
'type' => 'redirect',
'return_url' => $return_url
),
'capture' => true,
'description' => 'Заказ №'.$order_id,
),
uniqid('', true)
);
}
catch (\Throwable $e) {
/* Print error message. */
print_r($e->getMessage());
}