Skip to main content

handle Method

Overview

The handle method processes webhook payloads.

Request Fields

FieldTypeRequiredDescription
merchantEventIdStringYesYour event reference
payloadStringYesRaw webhook body
headersMapYesHTTP headers
webhookSecretStringYesSigning secret

Response Fields

FieldTypeDescription
eventTypeStringEvent type
sourceVerifiedBooleanSignature verified

Example

Map<String, Object> request = new HashMap<>();
request.put("merchantEventId", "evt_001");
request.put("payload", payload);
request.put("headers", headers);
request.put("webhookSecret", "whsec_xxx");

Map<String, Object> response = eventClient.handle(request);