Class PaymentTransactionServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.autoconfigure.PaymentTransactionServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({PaymentTransactionServiceProperties.class,ExternalCustomerProperties.class,SSLVerificationProperties.class,SavedPaymentMethodConfigurationProperties.class})
public class PaymentTransactionServiceAutoConfiguration
extends Object
- Author:
- Chris Kittrell (ckittrell)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains beans that is necessary for saved payment methods regardless what theSavedPaymentMethodConfigurationProperties.getStorageLocation()
is.static class
Deprecated, for removal: This API element is subject to removal in a future version.static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexternalTransactionResultService
(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, TransactionExecutionUtil transactionExecutionUtil, TransactionResultService transactionResultService) paymentAccessValidationService
(PaymentTTLValidationService paymentTTLValidationService, PaymentManagementService paymentManagementService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) paymentManagementService
(PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, CustomerPaymentAccountProvider<PaymentAccount> customerPaymentAccountProvider, org.springframework.context.MessageSource messageSource, com.broadleafcommerce.common.extension.TypeFactory typeFactory) paymentService
(PaymentRepository<com.broadleafcommerce.data.tracking.core.Trackable> paymentRepository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager manager, PaymentLockService<Payment> paymentLockService) org.springframework.http.client.reactive.ClientHttpConnector
paymentTransactionClientHttpConnector
(SSLVerificationProperties sslVerificationProperties) Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
paymentTransactionOauth2FilterFunctionSupplier
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) We'll leave this with a general name as it can (and should) be reused in a flex package.org.springframework.web.reactive.function.client.WebClient
paymentTransactionWebClient
(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) paymentTTLValidationService
(PaymentManagementService<Payment> paymentManagementService, PaymentTransactionServiceProperties properties) threeDSTransactionResultService
(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionUtil transactionExecutionUtil, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) transactionExecutionService
(PaymentService<Payment> paymentService, PaymentManagementService<Payment> paymentManagementService, TransactionExecutionRequestValidator requestValidator, PaymentLockService<Payment> paymentLockService, PaymentRequestService paymentRequestService, com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentTransactionService<PaymentTransaction> paymentTransactionService, TransactionResponseService transactionResponseService, TransactionExecutionUtil transactionExecutionUtil, com.broadleafcommerce.common.extension.TypeFactory typeFactory) transactionResponseService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) transactionResultService
(PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionUtil transactionExecutionUtil, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) transactionSummaryService
(PaymentManagementService<Payment> paymentManagementService, PaymentSummaryService paymentSummaryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) transactionWebhookMessageService
(PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable> paymentTransactionRepository, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, TransactionWebhookNotificationRepository transactionWebhookNotificationRepository) transactionWebhookService
(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentLockService<Payment> paymentLockService, TransactionExecutionService transactionExecutionService, TransactionWebhookMessageService transactionWebhookMessageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
-
Constructor Details
-
PaymentTransactionServiceAutoConfiguration
public PaymentTransactionServiceAutoConfiguration()
-
-
Method Details
-
paymentService
@Bean @ConditionalOnMissingBean public PaymentService<Payment> paymentService(PaymentRepository<com.broadleafcommerce.data.tracking.core.Trackable> paymentRepository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper, com.broadleafcommerce.data.tracking.core.mapping.DomainMapperManager manager, PaymentLockService<Payment> paymentLockService) -
paymentTTLValidationService
@Bean @ConditionalOnMissingBean public PaymentTTLValidationService paymentTTLValidationService(PaymentManagementService<Payment> paymentManagementService, PaymentTransactionServiceProperties properties) -
paymentAccessValidationService
@Bean @ConditionalOnMissingBean public PaymentAccessValidationService paymentAccessValidationService(PaymentTTLValidationService paymentTTLValidationService, PaymentManagementService paymentManagementService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) -
transactionSummaryService
@Bean @ConditionalOnMissingBean public TransactionSummaryService transactionSummaryService(PaymentManagementService<Payment> paymentManagementService, PaymentSummaryService paymentSummaryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
paymentManagementService
@Bean @ConditionalOnMissingBean public PaymentManagementService<Payment> paymentManagementService(PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, @Autowired(required=false) CustomerPaymentAccountProvider<PaymentAccount> customerPaymentAccountProvider, org.springframework.context.MessageSource messageSource, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
paymentTransactionWebClient
@Bean @ConditionalOnMissingBean(name="paymentTransactionWebClient") public org.springframework.web.reactive.function.client.WebClient paymentTransactionWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Qualifier("paymentTransactionClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) -
paymentTransactionOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> paymentTransactionOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, @Qualifier("paymentTransactionClientHttpConnector") Optional<org.springframework.http.client.reactive.ClientHttpConnector> clientHttpConnector) We'll leave this with a general name as it can (and should) be reused in a flex package.- Parameters:
clientRegistrations
-clientHttpConnector
-- Returns:
-
paymentTransactionClientHttpConnector
@Bean @ConditionalOnMissingBean(name="paymentTransactionClientHttpConnector") public org.springframework.http.client.reactive.ClientHttpConnector paymentTransactionClientHttpConnector(SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-
transactionResponseService
@Bean @ConditionalOnMissingBean public TransactionResponseService transactionResponseService(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
monetaryAmountRoundingHelper
-
transactionExecutionService
@Bean @ConditionalOnMissingBean public TransactionExecutionService transactionExecutionService(PaymentService<Payment> paymentService, PaymentManagementService<Payment> paymentManagementService, TransactionExecutionRequestValidator requestValidator, PaymentLockService<Payment> paymentLockService, PaymentRequestService paymentRequestService, com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentTransactionService<PaymentTransaction> paymentTransactionService, TransactionResponseService transactionResponseService, TransactionExecutionUtil transactionExecutionUtil, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
transactionWebhookNotificationRepository
@Bean @ConditionalOnMissingBean public TransactionWebhookNotificationRepository transactionWebhookNotificationRepository() -
transactionWebhookMessageService
@Bean @ConditionalOnMissingBean public TransactionWebhookMessageService transactionWebhookMessageService(PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable> paymentTransactionRepository, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, TransactionWebhookNotificationRepository transactionWebhookNotificationRepository) -
transactionWebhookService
@Bean @ConditionalOnMissingBean public TransactionWebhookService transactionWebhookService(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentLockService<Payment> paymentLockService, TransactionExecutionService transactionExecutionService, TransactionWebhookMessageService transactionWebhookMessageService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
transactionResultService
@Bean @ConditionalOnMissingBean public TransactionResultService transactionResultService(PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionUtil transactionExecutionUtil, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
threeDSTransactionResultService
@Bean @ConditionalOnMissingBean public ThreeDSTransactionResultService threeDSTransactionResultService(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionUtil transactionExecutionUtil, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
externalTransactionResultService
@Bean @ConditionalOnMissingBean public ExternalTransactionResultService externalTransactionResultService(com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, TransactionExecutionUtil transactionExecutionUtil, TransactionResultService transactionResultService) -
userAgentContextInfoCustomizer
@Bean @ConditionalOnMissingBean(name="userAgentContextInfoCustomizer") public com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer userAgentContextInfoCustomizer()
-
SavedPaymentMethod
to manage saved payment methods.