fix(kginicis): 주문설정 테스트결제 경고 표시 개선
This commit is contained in:
1 parent
ff45a19b4b
commit
b9355f051c
10 files changed
+365
-1
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Plugins\Sirsoft\PayKginicis\Controllers;
|
||||
|
||||
use App\Helpers\ResponseHelper;
|
||||
use App\Services\PluginSettingsService;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
class AdminSettingsStatusController
|
||||
{
|
||||
private const PLUGIN_IDENTIFIER = 'sirsoft-pay_kginicis';
|
||||
|
||||
public function __construct(private readonly PluginSettingsService $settingsService) {}
|
||||
|
||||
/**
|
||||
* 테스트 모드 활성 여부만 반환한다.
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function testMode(): JsonResponse
|
||||
{
|
||||
return ResponseHelper::success('messages.success', [
|
||||
'is_test_mode' => (bool) $this->settingsService->get(self::PLUGIN_IDENTIFIER, 'is_test_mode', true),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user