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 StringgetApplicationId(@NonNull Map<String, String> parameters) protected StripeRestConfigurationPropertiesprotected StringgetTenantId(@NonNull Map<String, String> parameters) voidvalidateEvent(@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, waitMethods 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:StripeWebhookEventServiceValidates the webhook event and signature.- Specified by:
validateEventin 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
-