Class StripePaymentIntentAccessTokenArgumentResolver
java.lang.Object
com.broadleafcommerce.web.resolver.StripePaymentIntentAccessTokenArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class StripePaymentIntentAccessTokenArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Resolves the payment intent access token parameter for controller methods that require it.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStripePaymentIntentAccessTokenArgumentResolver
(RequestStripePaymentIntentAccessTokenResolver paymentIntentAccessTokenResolver) -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) boolean
supportsParameter
(org.springframework.core.MethodParameter parameter)
-
Constructor Details
-
StripePaymentIntentAccessTokenArgumentResolver
public StripePaymentIntentAccessTokenArgumentResolver(RequestStripePaymentIntentAccessTokenResolver paymentIntentAccessTokenResolver)
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-
resolveArgument
@Nullable public Object resolveArgument(org.springframework.core.MethodParameter parameter, @Nullable org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, @Nullable org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-
getPaymentIntentAccessTokenResolver
-