Skip to content

Commit 30a1eba

Browse files
committed
웹훅 설명 추가
1 parent 3633ffa commit 30a1eba

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,18 @@ Basic 인증 방식은 `{SECRET_KEY}:` 를 Base64 인코딩 한 값을 사용합
8282

8383
웹훅을 이용하기 전에 `config/tosspayments.php` 파일에서 `webhook` 설정을 확인해주세요.
8484

85-
기본 웹훅 설정값입니다.
86-
- `queue``config('queue.default')` 로 설정되어 있습니다.
87-
- `controller``Getsolaris\LaravelTossPayments\Controllers\WebhookController` 로 설정되어 있습니다.
85+
```
86+
'webhook' => [
87+
'handler' => [
88+
'controller' => \App\Http\Controllers\WebhookController::class,
89+
'method' => '__invoke',
90+
],
91+
],
92+
```
93+
94+
`handler` 설정을 변경하여 웹훅을 처리할 컨트롤러와 메소드를 지정할 수 있습니다.
8895

89-
하지만 따로 수정을 하기 위해서는 아래의 명령어를 수행합니다.
96+
또한 아래의 명령어를 실행하여 기본 라우트 설정값인 `url/webhooks/tosspayments` 를 변경할 수 있습니다.
9097

9198
```bash
9299
php artisan vendor:publish --provider="Getsolaris\LaravelTossPayments\TossPaymentsServiceProvider" --tag="webhook"

0 commit comments

Comments
 (0)