Добавлен новый модуль Кто-где - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ admin@visavi.net (admin) admin@visavi.net (admin) Sat, 31 Jan 2026 20:01:56 +0300 <a href="/users/Manerov">Manerov</a>, Да именно так. Ну у него есть лимит. попробуй Qwen Chat бесплатный и удобный. Создаешь проект и работаешь https://visavi.net/index.php/topics/44950?pid=716416 Добавлен новый модуль Кто-где Николай Mon, 29 Dec 2025 18:21:11 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716416 <a href="/users/Manerov">Manerov</a>, если правильно попросишь то он тебе и скрипт и программу полноценную напишет https://visavi.net/index.php/topics/44950?pid=716380 Добавлен новый модуль Кто-где ramzes Mon, 22 Dec 2025 12:33:43 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716380 <a href="/users/muudm">Николай</a>, он сам код напишет? https://visavi.net/index.php/topics/44950?pid=716377 Добавлен новый модуль Кто-где Manerov Sat, 20 Dec 2025 18:12:36 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716377 <a href="/users/Vantuz">Вантуз-мен</a>, Все спасибо исправил с помощью ИИ Google так же с ним еще добавил несколько вариантов платежей для сайта https://visavi.net/index.php/topics/44950?pid=716375 Добавлен новый модуль Кто-где Николай Thu, 18 Dec 2025 20:18:39 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716375 Ошибка с tls скорее всего глубже, закомментируй try catch или посмотри в логах что там за ошибка<br> в storage/logs/laravel.log https://visavi.net/index.php/topics/44950?pid=716364 Добавлен новый модуль Кто-где Вантуз-мен Mon, 15 Dec 2025 20:58:46 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716364 <a href="/users/muudm">Николай</a>, guzzle прослойка curl, в зависимостях Laravel, требует протокол 1.2 <br> Даже если как-то обойти эту проблему, то скорее всего на стороне юкассы будет ошибка <br> Одним словом обнови libcurl <br> Или повысь версию php, возможно там уже посвежее curl https://visavi.net/index.php/topics/44950?pid=716363 Добавлен новый модуль Кто-где Вантуз-мен Mon, 15 Dec 2025 20:39:34 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716363 <pre class="prettyprint">&lt;?php declare(strict_types=1); namespace Modules\Payment\Services; use Illuminate\Http\Client\ConnectionException; use Illuminate\Http\Client\RequestException; use Illuminate\Http\Client\Response; // Убедитесь, что этот импорт есть use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; use Modules\Payment\Models\Order; use RuntimeException; class YooKassaService { private string $shopId; private string $secretKey; private string $apiUrl; private string $currency; public function __construct() { $this-&gt;apiUrl = config(&#039;payment.yookassa_api_url&#039;); $this-&gt;shopId = config(&#039;payment.yookassa_shop_id&#039;); $this-&gt;secretKey = config(&#039;payment.yookassa_secret_key&#039;); $this-&gt;currency = config(&#039;payment.yookassa_currency&#039;); // *** ВАЖНОЕ ДОБАВЛЕНИЕ ДЛЯ СТАРЫХ СЕРВЕРОВ *** // Fix for the &quot;Undefined constant CURL_SSLVERSION_TLSv1_2&quot; error if (!defined(&#039;CURL_SSLVERSION_TLSv1_2&#039;)) { define(&#039;CURL_SSLVERSION_TLSv1_2&#039;, 6); } } /** * Создание платежа */ public function createPayment(Order $order)&#58; array { $url = $this-&gt;apiUrl . &#039;/payments&#039;; $idempotenceKey = uniqid(&#039;&#039;, true); // Формирование данных (часть, которую вы не показали, но она должна быть тут) $data = &#91; /* ... данные заказа, как в предыдущем ответе ... */ ]; try { $response = Http&#58;&#58;withBasicAuth($this-&gt;shopId, $this-&gt;secretKey) -&gt;retry(3, 100) -&gt;withHeaders(&#91; &#039;Idempotence-Key&#039; =&gt; $idempotenceKey, &#039;Content-Type&#039; =&gt; &#039;application/json&#039;, ]) -&gt;post($url, $data) -&gt;throw(); return $this-&gt;handleResponse($response); } catch (ConnectionException $e) { Log&#58;&#58;error(&#039;YooKassa connection failed&#039;, &#91; &#039;error&#039; =&gt; $e-&gt;getMessage(), &#039;url&#039; =&gt; $url, ]); throw new RuntimeException(&#039;Не удалось подключиться к YooKassa&#039;); } catch (RequestException $e) { // Используем оператор объединения с null (??) для безопасного доступа к json() $error = $e-&gt;response?-&gt;json() ?? $e-&gt;getMessage(); Log&#58;&#58;critical(&#039;YooKassa API error&#039;, &#91; &#039;error&#039; =&gt; $error, ]); throw new RuntimeException(&#039;Ошибка API YooKassa&#039;); } } /** * Проверка статуса платежа */ public function getPaymentInfo(string $paymentId)&#58; array { $url = $this-&gt;apiUrl . &#039;/payments/&#039; . $paymentId; try { $response = Http&#58;&#58;withBasicAuth($this-&gt;shopId, $this-&gt;secretKey) -&gt;retry(3, 100) -&gt;withHeaders(&#91; &#039;Content-Type&#039; =&gt; &#039;application/json&#039;, ]) -&gt;get($url) -&gt;throw(); return $this-&gt;handleResponse($response); } catch (ConnectionException $e) { Log&#58;&#58;error(&#039;YooKassa connection failed&#039;, &#91; &#039;payment_id&#039; =&gt; $paymentId, &#039;error&#039; =&gt; $e-&gt;getMessage(), &#039;url&#039; =&gt; $url, ]); throw new RuntimeException(&#039;Не удалось подключиться к API YooKassa&#039;); } catch (RequestException $e) { $error = $e-&gt;response?-&gt;json() ?? $e-&gt;getMessage(); Log&#58;&#58;critical(&#039;YooKassa API error&#039;, &#91; &#039;payment_id&#039; =&gt; $paymentId, &#039;error&#039; =&gt; $error, ]); throw new RuntimeException(&#039;Ошибка API YooKassa&#039;); } } /** * Обработка ответа * * &#64;param Response $response Laravel HTTP Response object * &#64;return array Decoded JSON response data */ private function handleResponse(Response $response)&#58; array { // Поскольку вы используете -&gt;throw() в вызывающих методах, // сюда попадают ТОЛЬКО успешные ответы (status 2xx). // Дополнительная проверка $response-&gt;successful() избыточна, // но безопасна. if ($response-&gt;successful()) { return $response-&gt;json(); } // Эта часть кода не будет достигнута при использовании -&gt;throw(), // но остается как хороший запасной вариант&#58; Log&#58;&#58;error(&#039;YooKassa API Error (unhandled)&#039;, &#91; &#039;status&#039; =&gt; $response-&gt;status(), &#039;error&#039; =&gt; $response-&gt;json(&#039;description&#039;), ]); throw new RuntimeException(&#039;Ошибка API YooKassa&#039;); } } </pre> https://visavi.net/index.php/topics/44950?pid=716361 Добавлен новый модуль Кто-где Николай Mon, 15 Dec 2025 20:02:36 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716361 Доброго времени суток ребят. Поставил ваш модуль взятый с Githab модуль платежей через юкасса. Пишет ошибку. <br> <br> <div class="media-file"><a href="https://biq1.ru/1.jpg" data-fancybox="gallery"><img src="https://biq1.ru/1.jpg" class="img-fluid" alt="image"></a></div> <br> При изменении кода в /modules/Payment/Services/YooKassaService.php<br> на этот<br> <br> <pre class="prettyprint">&lt;?php declare(strict_types=1); namespace Modules\Payment\Services; use Illuminate\Http\Client\ConnectionException; use Illuminate\Http\Client\RequestException; use Illuminate\Http\Client\Response; // Убедитесь, что этот импорт есть use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; use Modules\Payment\Models\Order; use RuntimeException; class YooKassaService { private string $shopId; private string $secretKey; private string $apiUrl; private string $currency; public function __construct() { $this-&gt;apiUrl = config(&#039;payment.yookassa_api_url&#039;); $this-&gt;shopId = config(&#039;payment.yookassa_shop_id&#039;); $this-&gt;secretKey = config(&#039;payment.yookassa_secret_key&#039;); $this-&gt;currency = config(&#039;payment.yookassa_currency&#039;); // *** ВАЖНОЕ ДОБАВЛЕНИЕ ДЛЯ СТАРЫХ СЕРВЕРОВ *** // Fix for the &quot;Undefined constant CURL_SSLVERSION_TLSv1_2&quot; error if (!defined(&#039;CURL_SSLVERSION_TLSv1_2&#039;)) { define(&#039;CURL_SSLVERSION_TLSv1_2&#039;, 6); } } /** * Создание платежа */ public function createPayment(Order $order)&#58; array { $url = $this-&gt;apiUrl . &#039;/payments&#039;; $idempotenceKey = uniqid(&#039;&#039;, true); </pre> <br> при нажатии кнопку оплатить пишет <br> <br> <div class="media-file"><a href="https://biq1.ru/2.jpg" data-fancybox="gallery"><img src="https://biq1.ru/2.jpg" class="img-fluid" alt="image"></a></div> https://visavi.net/index.php/topics/44950?pid=716360 Добавлен новый модуль Кто-где Николай Mon, 15 Dec 2025 20:01:10 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=716360 <a href="/users/dizmod">Артур</a>, поставь модуль и увидишь https://visavi.net/index.php/topics/44950?pid=715466 Добавлен новый модуль Кто-где Absurd Sat, 05 Jul 2025 18:15:01 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715466 Кайф. Видимо пора обновляться.. https://visavi.net/index.php/topics/44950?pid=715465 Добавлен новый модуль Кто-где Андрей Sat, 05 Jul 2025 18:06:41 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715465 <a href="/users/Absurd">Absurd</a>, а есть пример игры??? https://visavi.net/index.php/topics/44950?pid=715464 Добавлен новый модуль Кто-где Артур Sat, 05 Jul 2025 14:14:05 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715464 <a href="/users/dizmod">Артур</a>, игры и развлечения <a href="https://github.com/visavi/rotor-modules/tree/master/Game" target="_blank" rel="nofollow">https://github.com/visavi/rotor-modules/tree/master/Game</a> https://visavi.net/index.php/topics/44950?pid=715463 Добавлен новый модуль Кто-где Absurd Sat, 05 Jul 2025 06:18:13 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715463 <a href="/users/Absurd">Absurd</a>, какой игры? https://visavi.net/index.php/topics/44950?pid=715462 Добавлен новый модуль Кто-где Артур Sat, 05 Jul 2025 06:09:08 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715462 <a href="/users/Absurd">Absurd</a>, добавил https://visavi.net/index.php/topics/44950?pid=715460 Добавлен новый модуль Кто-где Вантуз-мен Fri, 04 Jul 2025 00:20:21 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715460 <a href="/users/Vantuz">Вантуз-мен</a>, а сможешь в хуках прописать ссылку на модуль игры и развлечения, чтобы ссылка появлялась после активации модуля в админке? https://visavi.net/index.php/topics/44950?pid=715458 Добавлен новый модуль Кто-где Absurd Thu, 03 Jul 2025 18:35:13 +0300 Сообщения https://visavi.net/index.php/topics/44950?pid=715458