Class DefaultStripeWebhookEventService
java.lang.Object
com.broadleafcommerce.payment.service.gateway.webhooks.DefaultStripeWebhookEventService
- All Implemented Interfaces:
StripeWebhookEventService
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultStripeWebhookEventService
(StripeRestConfigurationProperties configurationProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getApplicationId
(@NonNull Map<String, String> parameters) protected StripeRestConfigurationProperties
protected String
getTenantId
(@NonNull Map<String, String> parameters) void
validateEvent
(@NonNull org.springframework.http.HttpHeaders headers, @NonNull String requestBody, @NonNull Map<String, String> parameters) Validates the webhook event and signature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.payment.service.gateway.webhooks.StripeWebhookEventService
constructEvent
-
Field Details
-
STRIPE_SIGNATURE_HEADER
- See Also:
-
-
Constructor Details
-
DefaultStripeWebhookEventService
-
-
Method Details
-
validateEvent
public void validateEvent(@NonNull @NonNull org.springframework.http.HttpHeaders headers, @NonNull @NonNull String requestBody, @NonNull @NonNull Map<String, String> parameters) Description copied from interface:StripeWebhookEventService
Validates the webhook event and signature.- Specified by:
validateEvent
in interfaceStripeWebhookEventService
- Parameters:
headers
- The webhook request headersrequestBody
- The webhook raw request body in the form of a Stringparameters
- The request parameters passed into the webhook
-
getTenantId
-
getApplicationId
-
getConfigurationProperties
-