Class PaymentProcessorHandler<P extends ProcessPayments>
java.lang.Object
com.broadleafcommerce.billing.job.module.PaymentProcessorHandler<P>
Handles the incoming
request by delegating payment processing to
PaymentProcessingService, sending requests for a single gateway at a time.
Additionally, holds capability to resolve transactions that did not receive a response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BillingProcessRequestService<BillingProcessingRequest,BillingProcessingRequestWithFullDetails> protected com.fasterxml.jackson.databind.ObjectMapperprotected PaymentProcessingService<BillingProcessingRequest>protected BillingJobPropertiesprotected BillingJobMessageSenderprotected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetGatewayType(BillingProcessingRequest billingProcessingRequest) protected Dateprotected Map<String,List<BillingProcessingRequest>> partitionByGateway(List<BillingProcessingRequest> processingRequests) voidDeprecated.voidprotected voidprocessUnknownPaymentGatewayResponses(P request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) voidDeprecated.voidresolveUnknownPaymentGatewayResponses(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves transactions that have not received a result from the database and delegates to thePaymentProcessingServiceto resolve their results with the payment provider.protected StringserializeObject(ProcessPayments request)
-
Field Details
-
sender
-
paymentProcessingService
-
paymentTransactionDetailService
@Autowired protected PaymentTransactionDetailService<PaymentTransactionDetail> paymentTransactionDetailService -
billingProcessingRequestService
@Autowired protected BillingProcessRequestService<BillingProcessingRequest,BillingProcessingRequestWithFullDetails> billingProcessingRequestService -
properties
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory
-
-
Constructor Details
-
PaymentProcessorHandler
public PaymentProcessorHandler()
-
-
Method Details
-
process
Deprecated.Useprocess(ProcessPayments, ContextInfo)instead -
process
public void process(P request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
resolveUnknownPaymentGatewayResponses
Deprecated. -
resolveUnknownPaymentGatewayResponses
public void resolveUnknownPaymentGatewayResponses(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves transactions that have not received a result from the database and delegates to thePaymentProcessingServiceto resolve their results with the payment provider. For resolved payments, persists results and sends as message tothe result handler. -
partitionByGateway
protected Map<String,List<BillingProcessingRequest>> partitionByGateway(List<BillingProcessingRequest> processingRequests) -
getGatewayType
-
getYesterdaysDate
-
processUnknownPaymentGatewayResponses
protected void processUnknownPaymentGatewayResponses(P request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
serializeObject
-
process(ProcessPayments, ContextInfo)instead