Package-level declarations
Starting from June 2024, webhook messages from PortOne includes headers as specified in Standard Webhooks. This provides an easy way of securing webhook endpoints. Instead of relying on the IP addresses of the origin, the message itself can be verified. (i.e. It is NOT required to set up IP filters when the messages are verified by itself.)
The WebhookVerifier class implements a simple webhook verification logic. The WebhookVerificationException is thrown when the verification fails.
After a new webhook secret is issued to replace the existing secret, multiple signatures are included in the messages for a certain amount of time during which verifiers with either secret can verify the message. This grace period can be used to migrate your server to the new secret.
Types
빌링키가 삭제되었을 때
빌링키 발급이 실패했을 때
빌링키가 발급되었을 때
빌링키 발급창이 열렸을 때
빌링키가 업데이트되었을 때
웹훅 형식
결제가 완전 취소되었을 때
(결제 취소가 비동기로 수행되는 경우) 결제 취소를 요청했을 때
결제(예약 결제 포함)가 실패했을 때
결제(예약 결제 포함)가 승인되었을 때 (모든 결제 수단)
결제가 부분 취소되었을 때
결제 승인 대기 상태가 되었을 때 (해외 결제시 발생 가능)
결제창이 열렸을 때
가상계좌가 발급되었을 때
Thrown to indicate that the webhook verification failed.
Verifies webhook messages as specified in Standard Webhooks.