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 TypeMethodDescriptionbooleanisHandlerCompatible(PaymentGatewayType handlerType) Used by Transparent Redirect Solutions that utilize Thymeleaf Processors and Expressions.resolvePaymentGateway(org.springframework.web.context.request.WebRequest request) Resolves aPaymentGatewayTypebased on aWebRequest
-
Constructor Details
-
PaymentGatewayResolverImpl
public PaymentGatewayResolverImpl()
-
-
Method Details
-
isHandlerCompatible
Description copied from interface:PaymentGatewayResolverUsed 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:
isHandlerCompatiblein interfacePaymentGatewayResolver- Returns:
-
resolvePaymentGateway
public PaymentGatewayType resolvePaymentGateway(org.springframework.web.context.request.WebRequest request) Description copied from interface:PaymentGatewayResolverResolves aPaymentGatewayTypebased on aWebRequest- Specified by:
resolvePaymentGatewayin interfacePaymentGatewayResolver- Returns:
-