Class PaymentGatewayResolverImpl
java.lang.Object
org.broadleafcommerce.common.payment.service.PaymentGatewayResolverImpl
- All Implemented Interfaces:
PaymentGatewayResolver
@Service("blPaymentGatewayResolver")
public class PaymentGatewayResolverImpl
extends Object
implements PaymentGatewayResolver
Default Resolver implementation. Extensions and modules can override this to provide
more exotic scenarios on which PaymentGateway should be used.
- Author:
- Elbert Bautista (elbertbautista)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isHandlerCompatible
(PaymentGatewayType handlerType) Used by Transparent Redirect Solutions that utilize Thymeleaf Processors and Expressions.resolvePaymentGateway
(org.springframework.web.context.request.WebRequest request) Resolves aPaymentGatewayType
based on aWebRequest
-
Constructor Details
-
PaymentGatewayResolverImpl
public PaymentGatewayResolverImpl()
-
-
Method Details
-
isHandlerCompatible
Description copied from interface:PaymentGatewayResolver
Used by Transparent Redirect Solutions that utilize Thymeleaf Processors and Expressions. This method should determine whether or not an extension handler should run for a particular gateway.- Specified by:
isHandlerCompatible
in interfacePaymentGatewayResolver
- Returns:
-
resolvePaymentGateway
public PaymentGatewayType resolvePaymentGateway(org.springframework.web.context.request.WebRequest request) Description copied from interface:PaymentGatewayResolver
Resolves aPaymentGatewayType
based on aWebRequest
- Specified by:
resolvePaymentGateway
in interfacePaymentGatewayResolver
- Returns:
-