Class DefaultStripeSavedPaymentMethodWebhookHandler
java.lang.Object
com.broadleafcommerce.payment.service.gateway.webhooks.DefaultStripeSavedPaymentMethodWebhookHandler
- All Implemented Interfaces:
StripeSavedPaymentMethodWebhookHandler
,com.broadleafcommerce.paymentgateway.service.PaymentGatewaySavedPaymentMethodWebhookHandler
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
public class DefaultStripeSavedPaymentMethodWebhookHandler
extends Object
implements StripeSavedPaymentMethodWebhookHandler
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultStripeSavedPaymentMethodWebhookHandler
(StripeWebhookEventService stripeWebhookEventService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.paymentgateway.domain.SavedPaymentMethodSetupResult
convertWebhookRequest
(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) protected com.stripe.model.StripeObject
getStripeObject
(@NonNull com.stripe.model.Event event) protected StripeWebhookEventService
protected com.broadleafcommerce.common.extension.TypeFactory
boolean
shouldHandleRequest
(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) void
validate
(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewaySavedPaymentMethodWebhookHandler
buildFailedWebhookResponse, buildSuccessfulWebhookResponse
-
Constructor Details
-
DefaultStripeSavedPaymentMethodWebhookHandler
public DefaultStripeSavedPaymentMethodWebhookHandler(StripeWebhookEventService stripeWebhookEventService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
validate
public void validate(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) - Specified by:
validate
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewaySavedPaymentMethodWebhookHandler
-
shouldHandleRequest
public boolean shouldHandleRequest(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) - Specified by:
shouldHandleRequest
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewaySavedPaymentMethodWebhookHandler
-
convertWebhookRequest
public com.broadleafcommerce.paymentgateway.domain.SavedPaymentMethodSetupResult convertWebhookRequest(org.springframework.http.HttpHeaders headers, String requestBody, Map<String, String> parameters) - Specified by:
convertWebhookRequest
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewaySavedPaymentMethodWebhookHandler
-
getGatewayType
- Specified by:
getGatewayType
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
getStripeObject
protected com.stripe.model.StripeObject getStripeObject(@NonNull @NonNull com.stripe.model.Event event) -
getSupportedEventTypes
-
getStripeWebhookEventService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-