Class DefaultPaymentGatewayResourceProvider
java.lang.Object
com.broadleafcommerce.paymentgateway.service.provider.DefaultPaymentGatewayResourceProvider
- All Implemented Interfaces:
PaymentGatewayResourceProvider
public class DefaultPaymentGatewayResourceProvider
extends Object
implements PaymentGatewayResourceProvider
- Author:
- Chris Kittrell (ckittrell)
-
Constructor Summary
ConstructorDescriptionDefaultPaymentGatewayResourceProvider
(List<PaymentGatewayConfiguration> paymentGatewayConfigurations, List<PaymentGatewayTransactionService> transactionServices, List<PaymentGatewayRollbackService> rollbackServices, List<PaymentGatewayReportingService> reportingServices, List<PaymentGatewayCustomerService> customerServices, List<PaymentGatewayHostedService> hostedServices, List<PaymentGatewayPaymentValidator> paymentValidators, List<PaymentGatewayTransactionResponseService> transactionResponseServices, List<PaymentGatewayTransactionResponseValidator> transactionResponseValidators) -
Method Summary
Modifier and TypeMethodDescriptionget3DSTransactionLookupService
(@NonNull String gatewayType) Deprecated.getConfiguration
(@NonNull String gatewayType) Returns the firstPaymentGatewayConfiguration
that matches the givenPaymentGatewayType
.getCustomerService
(@NonNull String gatewayType) Returns the firstPaymentGatewayCustomerService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayCustomerService>
getHostedService
(@NonNull String gatewayType) Returns the firstPaymentGatewayHostedService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayHostedService>
protected List<PaymentGatewayConfiguration>
protected List<PaymentGatewayWebhookHandler>
getPaymentModificationService
(@NonNull String gatewayType) Returns the implementation ofPaymentGatewayPaymentModificationService
for the specified gateway type.protected List<PaymentGatewayPaymentModificationService>
getPaymentValidator
(@NonNull String gatewayType) Returns the firstPaymentGatewayPaymentValidator
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayPaymentValidator>
getReportingService
(@NonNull String gatewayType) Returns the firstPaymentGatewayReportingService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayReportingService>
getRollbackService
(@NonNull String gatewayType) Returns the firstPaymentGatewayRollbackService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayRollbackService>
getSavedPaymentMethodService
(@NonNull String gatewayType) Returns the implementation ofPaymentGatewaySavedPaymentMethodService
for the specified gateway type or null.protected List<PaymentGatewaySavedPaymentMethodService>
getSavedPaymentMethodWebhookHandler
(@NonNull String gatewayType) Returns the firstPaymentGatewaySavedPaymentMethodWebhookHandler
that matches the givenPaymentGatewayType
.protected List<PaymentGateway3DSTransactionLookupService>
getTransactionLookupService
(@NonNull String gatewayType) Returns the implementation ofPaymentGatewayTransactionLookupService
for the specified gateway type.protected List<PaymentGatewayTransactionLookupService>
getTransactionResponseService
(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionResponseService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayTransactionResponseService>
getTransactionResponseValidator
(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionResponseValidator
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayTransactionResponseValidator>
getTransactionService
(@NonNull String gatewayType) Returns the firstPaymentGatewayTransactionService
that matches the givenPaymentGatewayType
.protected List<PaymentGatewayTransactionService>
getWebhookHandler
(@NonNull String gatewayType) Returns the firstPaymentGatewayWebhookHandler
that matches the givenPaymentGatewayType
.void
setPaymentGatewaySavedPaymentMethodWebhookHandler
(List<PaymentGatewaySavedPaymentMethodWebhookHandler> paymentGatewaySavedPaymentMethodWebhookHandler) void
setPaymentGatewayWebhookHandlers
(List<PaymentGatewayWebhookHandler> paymentGatewayWebhookHandlers) void
setPaymentModificationServices
(List<PaymentGatewayPaymentModificationService> paymentModificationServices) void
setSavedPaymentMethodServices
(List<PaymentGatewaySavedPaymentMethodService> savedPaymentMethodServices) void
setThreeDSTransactionLookupServices
(List<PaymentGateway3DSTransactionLookupService> threeDSTransactionLookupServices) void
setTransactionLookupServices
(List<PaymentGatewayTransactionLookupService> transactionLookupServices)
-
Constructor Details
-
DefaultPaymentGatewayResourceProvider
public DefaultPaymentGatewayResourceProvider(List<PaymentGatewayConfiguration> paymentGatewayConfigurations, List<PaymentGatewayTransactionService> transactionServices, List<PaymentGatewayRollbackService> rollbackServices, List<PaymentGatewayReportingService> reportingServices, List<PaymentGatewayCustomerService> customerServices, List<PaymentGatewayHostedService> hostedServices, List<PaymentGatewayPaymentValidator> paymentValidators, List<PaymentGatewayTransactionResponseService> transactionResponseServices, List<PaymentGatewayTransactionResponseValidator> transactionResponseValidators)
-
-
Method Details
-
getConfiguration
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayConfiguration
that matches the givenPaymentGatewayType
.- Specified by:
getConfiguration
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionService
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionService
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getRollbackService
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayRollbackService
that matches the givenPaymentGatewayType
.- Specified by:
getRollbackService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getWebhookHandler
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayWebhookHandler
that matches the givenPaymentGatewayType
.- Specified by:
getWebhookHandler
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getSavedPaymentMethodWebhookHandler
public PaymentGatewaySavedPaymentMethodWebhookHandler getSavedPaymentMethodWebhookHandler(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewaySavedPaymentMethodWebhookHandler
that matches the givenPaymentGatewayType
.- Specified by:
getSavedPaymentMethodWebhookHandler
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getReportingService
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayReportingService
that matches the givenPaymentGatewayType
.- Specified by:
getReportingService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getCustomerService
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayCustomerService
that matches the givenPaymentGatewayType
.- Specified by:
getCustomerService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getHostedService
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayHostedService
that matches the givenPaymentGatewayType
.- Specified by:
getHostedService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getPaymentValidator
Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayPaymentValidator
that matches the givenPaymentGatewayType
.- Specified by:
getPaymentValidator
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionResponseService
public PaymentGatewayTransactionResponseService getTransactionResponseService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionResponseService
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionResponseService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getTransactionResponseValidator
public PaymentGatewayTransactionResponseValidator getTransactionResponseValidator(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the firstPaymentGatewayTransactionResponseValidator
that matches the givenPaymentGatewayType
.- Specified by:
getTransactionResponseValidator
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- a String representation of thePaymentGatewayType
-
getSavedPaymentMethodService
@Nullable public PaymentGatewaySavedPaymentMethodService getSavedPaymentMethodService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGatewaySavedPaymentMethodService
for the specified gateway type or null.- Specified by:
getSavedPaymentMethodService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGatewaySavedPaymentMethodService
for the specified gateway type or null
-
get3DSTransactionLookupService
@Deprecated public PaymentGateway3DSTransactionLookupService get3DSTransactionLookupService(@NonNull @NonNull String gatewayType) Deprecated.Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGateway3DSTransactionLookupService
for the specified gateway type.- Specified by:
get3DSTransactionLookupService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGateway3DSTransactionLookupService
for the specified gateway type
-
getTransactionLookupService
public PaymentGatewayTransactionLookupService getTransactionLookupService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGatewayTransactionLookupService
for the specified gateway type.- Specified by:
getTransactionLookupService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGatewayTransactionLookupService
for the specified gateway type
-
getPaymentModificationService
@Nullable public PaymentGatewayPaymentModificationService getPaymentModificationService(@NonNull @NonNull String gatewayType) Description copied from interface:PaymentGatewayResourceProvider
Returns the implementation ofPaymentGatewayPaymentModificationService
for the specified gateway type.- Specified by:
getPaymentModificationService
in interfacePaymentGatewayResourceProvider
- Parameters:
gatewayType
- thePaymentGatewayType
related to implementing resource- Returns:
- the implementation of
PaymentGatewayPaymentModificationService
for the specified gateway type
-
getPaymentGatewayConfigurations
-
getTransactionServices
-
getRollbackServices
-
getPaymentGatewayWebhookHandlers
-
setPaymentGatewayWebhookHandlers
@Autowired(required=false) public void setPaymentGatewayWebhookHandlers(List<PaymentGatewayWebhookHandler> paymentGatewayWebhookHandlers) -
getPaymentGatewaySavedPaymentMethodWebhookHandler
protected List<PaymentGatewaySavedPaymentMethodWebhookHandler> getPaymentGatewaySavedPaymentMethodWebhookHandler() -
setPaymentGatewaySavedPaymentMethodWebhookHandler
@Autowired(required=false) public void setPaymentGatewaySavedPaymentMethodWebhookHandler(List<PaymentGatewaySavedPaymentMethodWebhookHandler> paymentGatewaySavedPaymentMethodWebhookHandler) -
getReportingServices
-
getCustomerServices
-
getHostedServices
-
getPaymentValidators
-
getTransactionResponseServices
-
getTransactionResponseValidators
-
getSavedPaymentMethodServices
-
setSavedPaymentMethodServices
@Autowired(required=false) public void setSavedPaymentMethodServices(@Nullable List<PaymentGatewaySavedPaymentMethodService> savedPaymentMethodServices) -
getThreeDSTransactionLookupServices
@Nullable protected List<PaymentGateway3DSTransactionLookupService> getThreeDSTransactionLookupServices() -
setThreeDSTransactionLookupServices
@Autowired(required=false) public void setThreeDSTransactionLookupServices(@Nullable List<PaymentGateway3DSTransactionLookupService> threeDSTransactionLookupServices) -
getPaymentModificationServices
-
setPaymentModificationServices
@Autowired(required=false) public void setPaymentModificationServices(@Nullable List<PaymentGatewayPaymentModificationService> paymentModificationServices) -
getTransactionLookupServices
-
setTransactionLookupServices
@Autowired(required=false) public void setTransactionLookupServices(@Nullable List<PaymentGatewayTransactionLookupService> transactionLookupServices)
-