setAuth('<Идентификатор магазина>', '<Секретный ключ>'); $payment = $client->createPayment( array( 'amount' => array( 'value' => 100.0, 'currency' => 'RUB', ), 'confirmation' => array( 'type' => 'redirect', 'return_url' => 'https://www.merchant-website.com/return_url', ), 'capture' => true, 'description' => 'Заказ №1', 'metadata' => array( 'order_id' => '37', ) ), uniqid('', true) ); ?>