웹훅 지급대행 검증

. ,
https://docs.tosspayments.com/reference/using-api/webhook-events .

, .

.
- 의 payload
의 tosspayments-webhook-transmission-time .
payload를 json
HMACSHA256(payload:tosspayments-webhook-transmission-time) == base64.decode(signature v1 값 2)
(, )

"{"eventType":"payout.changed","createdAt":"2024-12-02T12:15:20+09:00","version":"2022-11-16","eventId":"eventId","entityType":"payout","entityBody":{"id":"id","refPayoutId":"regPayId","destination":"destination","scheduleType":"EXPRESS","payoutDate":"2024-12-02","amount":{"currency":"KRW","value":1111},"transactionDescription":"","requestedAt":"2024-12-02T10:35:02+09:00","status":"COMPLETED","error":null,"metadata":null}}:2024-12-03T11:00:38+09:00"
.
{"2024-12-03T11:00:38+09:00"}, {2024-12-03T11:00:38+09:00} .
??
.
웹훅 이벤트 | 토스페이먼츠 개발자센터
Was this page helpful?