Uses of Class
com.broadleafcommerce.paymenttransaction.domain.PaymentTransaction
Package
Description
-
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.domain
Modifier and TypeMethodDescriptionPayment.getTransactions()
Transaction data representing each payment gateway interaction related to this payment.Modifier and TypeMethodDescriptionPaymentTransactionRef.fromPaymentTransaction
(PaymentTransaction transaction) Builds aPaymentTransactionRef
based on the providedPaymentTransaction
Modifier and TypeMethodDescriptionvoid
Payment.setTransactions
(List<PaymentTransaction> transactions) Transaction data representing each payment gateway interaction related to this payment. -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.exception
Modifier and TypeMethodDescriptionStalePaymentTransactionVersionException.getUpToDatePaymentTransaction()
ModifierConstructorDescriptionStalePaymentTransactionVersionException
(Integer requestVersion, PaymentTransaction upToDatePaymentTransaction) StalePaymentTransactionVersionException
(Integer requestVersion, PaymentTransaction upToDatePaymentTransaction, Throwable cause) StalePaymentTransactionVersionException
(String message, PaymentTransaction upToDatePaymentTransaction, Throwable cause) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service
Modifier and TypeClassDescriptionclass
interface
PaymentTransactionService<T extends PaymentTransaction>
Service responsible for the creation of PaymentTransactions & the recording ofPaymentResponse
results on the PaymentTransactionModifier and TypeMethodDescriptionprotected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull TransactionAmountDetails transactionAmountDetails, @NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull TransactionExecutionRequest request, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull javax.money.MonetaryAmount transactionAmount, @NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
CustomerPaymentAccountManagementService.getLatestSuccessfulTransaction
(Payment payment) Deprecated, for removal: This API element is subject to removal in a future version.Gets the latest successfulPaymentTransaction
from the givenPayment
.protected PaymentTransaction
DefaultSavedPaymentMethodManagementService.getLatestSuccessfulTransaction
(@NonNull Payment payment) Gets the latest successfulPaymentTransaction
from the givenPayment
.DefaultTransactionExecutionService.ParentTransactionExecutionPackage.getParentTransaction()
protected PaymentTransaction
DefaultTransactionExecutionService.getPaymentTransactionById
(@NonNull Payment payment, @NonNull String parentTransactionId) protected PaymentTransaction
DefaultThreeDSTransactionResultService.identify3DSTransaction
(@NonNull com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultExternalTransactionResultService.identifyExternalTransaction
(@NonNull com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.identifyParentTransactionIfExists
(com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService transactionService, Map<String, Object> transactionResults, Map<String, Object> additionalPaymentProperties, Payment payment) DefaultTransactionResultService.identifyPendingTransactionByTransactionIdentifier
(@NonNull com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TransactionResultService.identifyPendingTransactionByTransactionIdentifier
(@NonNull com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Identifies the transaction that is pending results from the gateway.DefaultThreeDSTransactionResultService.identifyTransactionRequiring3DSVerification
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ThreeDSTransactionResultService.identifyTransactionRequiring3DSVerification
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds the transaction that required 3DS results.DefaultExternalTransactionResultService.identifyTransactionRequiringExternalInteraction
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ExternalTransactionResultService.identifyTransactionRequiringExternalInteraction
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds the transaction that required external results.protected PaymentTransaction
DefaultTransactionExecutionService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, @NonNull PaymentTransaction parentAuthTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.recordTransactionResponse
(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds and records a transaction based on thePayment
andPaymentResponse
.protected PaymentTransaction
DefaultTransactionExecutionService.recordTransactionResponse
(@NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the givenPaymentTransaction
based on the givenPaymentResponse
and persists thePaymentTransaction
.Modifier and TypeMethodDescriptionprotected Optional<PaymentTransaction>
DefaultTransactionExecutionService.getExisting3DSTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction) protected PaymentTransactionService<PaymentTransaction>
DefaultPaymentManagementService.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
DefaultThreeDSTransactionResultService.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
DefaultTransactionExecutionRequestValidator.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
DefaultTransactionExecutionService.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
DefaultTransactionResultService.getPaymentTransactionService()
protected Optional<PaymentTransaction>
DefaultTransactionExecutionService.getTransactionRequiresHostedPaymentPageInteraction
(@NonNull Payment payment) protected Optional<PaymentTransaction>
DefaultTransactionExecutionService.getTransactionRequiring3DSVerification
(@NonNull Payment payment) protected Optional<PaymentTransaction>
DefaultThreeDSTransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS) DefaultTransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternal) TransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction pendingTransaction) Identifies the child transaction of the pending transaction.protected List<PaymentTransaction>
DefaultPaymentManagementService.markTransactionsIneligibleForAutomaticReversal
(P payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Marks themanagement state
of the givenpayment's transactions
toDefaultTransactionManagementStates.AUTOMATIC_REVERSAL_NOT_ALLOWED
.protected List<PaymentTransaction>
DefaultPaymentManagementService.requestReversalForEligibleTransactions
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deprecated.protected List<PaymentTransaction>
DefaultPaymentManagementService.requestReversalForEligibleTransactions
(@NonNull Payment payment, String reversalReason, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected List<PaymentTransaction>
DefaultPaymentManagementService.requestReversalForTransactions
(@NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Modifier and TypeMethodDescriptionDefaultPaymentTransactionService.buildChildPaymentTransactionForResponse
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) PaymentTransactionService.buildChildPaymentTransactionForResponse
(Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) Creates the new child payment transaction for the specified parent transaction based on the payment response.protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
DefaultTransactionResultService.buildContextInfoFromTransaction
(@NonNull PaymentTransaction transaction) protected String
DefaultTransactionExecutionRequestValidator.buildInvalidParentTransactionTypeMessage
(@NonNull String transactionType, @NonNull PaymentTransaction parentTransaction, @NonNull String... expectedParentTransactionTypes) protected TransactionExecutionResponse
DefaultTransactionResultService.buildPendingTransactionNotFoundResponse
(@NonNull PaymentTransaction pendingTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.broadleafcommerce.paymentgateway.domain.TransactionLookupRequest
DefaultThreeDSTransactionResultService.buildTransactionLookupRequest
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.paymentgateway.domain.TransactionLookupRequest
DefaultTransactionResultService.buildTransactionLookupRequest
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.paymentgateway.domain.TransactionLookupRequest
TransactionResultService.buildTransactionLookupRequest
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds the transaction details to pass to the payment gateway.com.broadleafcommerce.paymentgateway.domain.PaymentRequest
DefaultPaymentRequestService.createPaymentRequest
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates aPaymentRequest
, based on the providedPayment
&PaymentTransaction
, which will drive the authorization transaction inPaymentGatewayTransactionService.authorize(PaymentRequest)
.default com.broadleafcommerce.paymentgateway.domain.PaymentRequest
PaymentRequestService.createPaymentRequest
(Payment payment, PaymentTransaction paymentTransaction) Deprecated.com.broadleafcommerce.paymentgateway.domain.PaymentRequest
PaymentRequestService.createPaymentRequest
(Payment payment, PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull TransactionAmountDetails transactionAmountDetails, @NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.createPaymentTransaction
(@NonNull javax.money.MonetaryAmount transactionAmount, @NonNull TransactionExecutionRequest request, @NonNull Payment payment, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected Optional<PaymentTransaction>
DefaultTransactionExecutionService.getExisting3DSTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction) protected Payment
DefaultThreeDSTransactionResultService.getPayment
(@NonNull PaymentTransaction transactionRequiring3DS, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) DefaultTransactionResultService.getPayment
(@NonNull PaymentTransaction pendingTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) TransactionResultService.getPayment
(@NonNull PaymentTransaction pendingTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Fetches the payment that the pending transaction belongs to.DefaultTransactionResultService.handleRecordTransactionException
(@NonNull Exception e, @NonNull String gatewayType, Payment payment, PaymentTransaction pendingTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) TransactionResultService.handleRecordTransactionException
(@NonNull Exception e, @NonNull String gatewayType, Payment payment, PaymentTransaction pendingTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Handles the exceptions thrown when recording transaction results.protected Optional<PaymentTransaction>
DefaultThreeDSTransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS) DefaultTransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternal) TransactionResultService.identifyChildTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction pendingTransaction) Identifies the child transaction of the pending transaction.protected void
DefaultTransactionResultService.logIfPaymentArchived
(@NonNull Payment payment, @NonNull PaymentTransaction transaction) DefaultThreeDSTransactionResultService.lookupAndRecord3DSTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ThreeDSTransactionResultService.lookupAndRecord3DSTransactionResult
(Payment payment, @NonNull PaymentTransaction transactionRequiring3DS, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads the transaction result usingPaymentGateway3DSTransactionLookupService
, records the result to the appropriate transaction and payment.DefaultExternalTransactionResultService.lookupAndRecordExternalTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternal, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ExternalTransactionResultService.lookupAndRecordExternalTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternal, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads the transaction result usingPaymentGatewayTransactionLookupService
, records the result to the appropriate transaction and payment.protected void
DefaultPaymentRequestService.populateStoreCreditTransactionProperties
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull PaymentTransaction paymentTransaction) protected void
DefaultPaymentRequestService.populateTransactionProperties
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull PaymentTransaction paymentTransaction) PopulatesPaymentRequest.getAdditionalFields()
based on the contents of the providedPaymentTransaction
protected TransactionExecutionResponse
DefaultThreeDSTransactionResultService.record3DSTransactionResults
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) DefaultTransactionResultService.recordChildTransactionResults
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull Payment payment, @NonNull PaymentTransaction pendingTransaction, @NonNull String managementStateReason, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) TransactionResultService.recordChildTransactionResults
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull Payment payment, @NonNull PaymentTransaction pendingTransaction, @NonNull String managementStateReason, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Records the transaction results from the payment gateway.protected TransactionExecutionResponse
DefaultExternalTransactionResultService.recordExternalTransactionResults
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternalInteraction, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected PaymentTransaction
DefaultTransactionExecutionService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, @NonNull PaymentTransaction parentAuthTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionExecutionService.recordTransactionResponse
(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, PaymentTransaction parentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds and records a transaction based on thePayment
andPaymentResponse
.protected PaymentTransaction
DefaultTransactionExecutionService.recordTransactionResponse
(@NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the givenPaymentTransaction
based on the givenPaymentResponse
and persists thePaymentTransaction
.void
DefaultTransactionExecutionService.ParentTransactionExecutionPackage.setParentTransaction
(PaymentTransaction parentTransaction) protected boolean
DefaultTransactionExecutionService.shouldArchivePaymentDueToFailedTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction transaction) Determines whether or not thePayment
should be archived due to the failed transaction that is described by the providedPaymentResponse
.protected boolean
DefaultTransactionExecutionService.shouldRecordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, @NonNull PaymentTransaction parentAuthTransaction) protected Payment
DefaultTransactionExecutionService.updatePaymentBasedOnTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Based on the results of the payment gateway authorize transaction, update the payment.DefaultTransactionExecutionService.updatePaymentBasedOnTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Based on the results of the payment gateway authorize transaction, update thePayment
andSavedPaymentMethod
.TransactionExecutionService.updatePaymentBasedOnTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Based on the results of the payment gateway authorize transaction, update thePayment
andSavedPaymentMethod
.protected void
DefaultTransactionExecutionService.updateTransactionBasedOnResponse
(@NonNull PaymentTransaction transaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse response) Updates the givenPaymentTransaction
based on the givenPaymentResponse
protected void
DefaultTransactionExecutionRequestValidator.validateParentTransactionCurrency
(PaymentTransaction parentTransaction, @NonNull javax.money.MonetaryAmount transactionAmount) protected void
DefaultTransactionExecutionRequestValidator.validateParentTransactionType
(PaymentTransaction parentTransaction, @NonNull String transactionType) protected void
DefaultExternalTransactionResultService.validateTransactionResults
(@NonNull TransactionExecutionResponse transactionResponse, @NonNull PaymentTransaction transactionRequiringExternal, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultThreeDSTransactionResultService.validateTransactionResults
(@NonNull TransactionExecutionResponse transactionResponse, @NonNull PaymentTransaction transactionRequiring3DS, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ModifierConstructorDescriptionDefaultPaymentManagementService
(PaymentService<P> paymentService, PaymentLockService<P> paymentLockService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, com.broadleafcommerce.paymentgateway.service.provider.PaymentGatewayResourceProvider paymentGatewayResourceProvider, CustomerPaymentAccountProvider<PaymentAccount> paymentAccountProvider, org.springframework.context.MessageSource messageSource, com.broadleafcommerce.common.extension.TypeFactory typeFactory) DefaultThreeDSTransactionResultService
(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) DefaultTransactionExecutionRequestValidator
(PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentSummaryService paymentSummaryService, TransactionExecutionUtil transactionExecutionUtil) DefaultTransactionExecutionService
(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) DefaultTransactionResultService
(PaymentTransactionService<PaymentTransaction> paymentTransactionService, TransactionExecutionUtil transactionExecutionUtil, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.anonymization
Modifier and TypeMethodDescriptionprotected PaymentTransactionService<PaymentTransaction>
PaymentAnonymizationHandler.getPaymentTransactionService()
Modifier and TypeMethodDescriptionprotected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
PaymentAnonymizationHandler.processTransactions
(@NonNull String boundedContextIdentifier, List<PaymentTransaction> transactions, @NonNull String type, @NonNull String fieldName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ModifierConstructorDescriptionPaymentAnonymizationHandler
(PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentAnonymizationProperties properties) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.autoconfigure
Modifier and TypeMethodDescriptionPaymentTransactionReversalAutoConfiguration.checkoutRollbackEventListener
(PaymentService<Payment> paymentPaymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentLockService<Payment> paymentLockService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService) PaymentTransactionReversalAutoConfiguration.markPaymentTransactionsForReversalListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, com.broadleafcommerce.data.tracking.core.service.scheduledjob.ScheduledJobContextService scheduledJobContextService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentManagementService<Payment> paymentManagementService, PaymentLockService<Payment> paymentLockService) PaymentTransactionServiceAutoConfiguration.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) PaymentTransactionReversalAutoConfiguration.paymentTransactionReversalJobListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, com.broadleafcommerce.data.tracking.core.service.scheduledjob.ScheduledJobContextService scheduledJobContextService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, TransactionExecutionService transactionExecutionService) PaymentTransactionServiceAutoConfiguration.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) PaymentTransactionServiceAutoConfiguration.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) PaymentTransactionServiceAutoConfiguration.transactionResultService
(PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentLockService<Payment> paymentLockService, TransactionExecutionUtil transactionExecutionUtil, TransactionExecutionService transactionExecutionService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) PaymentTransactionServiceAutoConfiguration.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) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.messaging.reversals
Modifier and TypeMethodDescriptionprotected PaymentTransactionService<PaymentTransaction>
CheckoutRollbackEventListener.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
MarkPaymentTransactionsForReversalListener.getPaymentTransactionService()
Deprecated.protected PaymentTransactionService<PaymentTransaction>
PaymentTransactionReversalJobListener.getPaymentTransactionService()
protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.prepareTransactionsForReversal
(List<PaymentTransaction> transactions, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the transaction management state toREVERSAL_IN_PROGRESS
.protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.processFailedTransactionReversal
(List<PaymentTransaction> paymentTransactions, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the transaction management state toFAILED_REVERSAL
if the transaction inREVERSAL_IN_PROGRESS
state.protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.reversePaymentTransactions
(@NonNull List<PaymentTransaction> transactions, @NonNull Map<String, Payment> paymentsById, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionprotected String
PaymentTransactionReversalJobListener.refundTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected String
PaymentTransactionReversalJobListener.refundTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected String
PaymentTransactionReversalJobListener.reverseAuthAndCaptureTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected String
PaymentTransactionReversalJobListener.reverseAuthAndCaptureTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reverses a successful authorizeAndCapture transaction by interacting with the relevant payment gateway to refund the authorizeAndCapture.protected String
PaymentTransactionReversalJobListener.reverseAuthTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected String
PaymentTransactionReversalJobListener.reverseAuthTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Communicates with the relevant payment gateway to execute aDefaultTransactionTypes.REVERSE_AUTH
transaction.protected String
PaymentTransactionReversalJobListener.reverseCaptureTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected String
PaymentTransactionReversalJobListener.reverseCaptureTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reverses a successful capture transaction by interacting with the relevant payment gateway to refund the capture.protected String
PaymentTransactionReversalJobListener.reversePaymentTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Responsible for processing payment transaction reversals based on the provided payment and transaction.protected String
PaymentTransactionReversalJobListener.reversePaymentTransaction
(@NonNull Map<String, Payment> paymentsById, @NonNull PaymentTransaction parentTransaction, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionPaymentTransactionReversalJobListener.getPaymentsById
(@NonNull List<PaymentTransaction> transactions, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Gather thePayments
related to the providedPaymentTransactions
.protected void
CheckoutRollbackEventListener.markTransactionsAsReversalCandidates
(@NonNull List<PaymentTransaction> transactionsToMarkAsReversalCandidates, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
MarkPaymentTransactionsForReversalListener.markTransactionsForReversal
(@NonNull Payment payment, @NonNull List<PaymentTransaction> transactionsForPayment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.protected void
MarkPaymentTransactionsForReversalListener.markTransactionsForReversal
(List<PaymentTransaction> transactions, Map<String, Payment> paymentsById, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Runs through the provided transactions and marks them withDefaultTransactionManagementStates.REQUIRES_REVERSAL
.protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.prepareTransactionsForReversal
(List<PaymentTransaction> transactions, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the transaction management state toREVERSAL_IN_PROGRESS
.protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.processFailedTransactionReversal
(List<PaymentTransaction> paymentTransactions, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the transaction management state toFAILED_REVERSAL
if the transaction inREVERSAL_IN_PROGRESS
state.protected void
PaymentTransactionReversalJobListener.processTransactionReversalsForPayments
(@NonNull List<PaymentTransaction> transactions, @NonNull Map<String, Payment> paymentsById, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Responsible for initiating payment transaction reversals for the provided payments.protected void
PaymentTransactionReversalJobListener.reversePaymentTransactions
(@NonNull Payment payment, @NonNull List<PaymentTransaction> transactions, @NonNull String jobIdempotencyKey, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Responsible for processing payment transaction reversals.protected List<PaymentTransaction>
PaymentTransactionReversalJobListener.reversePaymentTransactions
(@NonNull List<PaymentTransaction> transactions, @NonNull Map<String, Payment> paymentsById, @NonNull String jobIdempotencyKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.ModifierConstructorDescriptionCheckoutRollbackEventListener
(PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentLockService<Payment> paymentLockService, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentService) MarkPaymentTransactionsForReversalListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentService, com.broadleafcommerce.data.tracking.core.service.scheduledjob.ScheduledJobContextService scheduledJobContextService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentService<Payment> paymentService, PaymentManagementService<Payment> paymentManagementService, PaymentLockService<Payment> paymentLockService) Deprecated.PaymentTransactionReversalJobListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageService, com.broadleafcommerce.data.tracking.core.service.scheduledjob.ScheduledJobContextService scheduledJobContextService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, TransactionExecutionService transactionExecutionService) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.messaging.transactionwebhook
Modifier and TypeMethodDescriptionprotected PaymentTransactionService<PaymentTransaction>
DefaultTransactionWebhookMessageService.getPaymentTransactionService()
Modifier and TypeMethodDescriptionprotected TransactionResultEvent
DefaultTransactionWebhookMessageService.buildTransactionResultSummary
(@NonNull Payment payment, @NonNull PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TransactionResultEvent.fromPaymentTransaction
(PaymentTransaction transaction) void
DefaultTransactionWebhookMessageService.sendTransactionWebhookMessage
(@NonNull Payment payment, @NonNull PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
TransactionWebhookMessageService.sendTransactionWebhookMessage
(Payment payment, PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the message ofPaymentTransactionResultWebhookProducer#TYPE
type, notifying the system that a payment transaction has results recorded via the webhook.Modifier and TypeMethodDescriptionvoid
DefaultTransactionWebhookMessageService.setPaymentTransactionService
(PaymentTransactionService<PaymentTransaction> paymentTransactionService) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.summary
Modifier and TypeMethodDescriptionprotected List<PaymentTransaction>
DefaultPaymentSummaryService.filterByTransactionSourceEntity
(@NonNull List<PaymentTransaction> transactions, String sourceEntityType, String sourceEntityId) protected List<PaymentTransaction>
DefaultPaymentSummaryService.filterByTransactionSourceEntityTypes
(List<PaymentTransaction> transactions, Set<String> sourceEntityTypes) protected List<PaymentTransaction>
DefaultPaymentSummaryService.filterOutNonSuccessfulAndReversedTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutNonSuccessfulAndReversedTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutNonSuccessfulTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutReversedOrReversalTransactions
(@NonNull List<PaymentTransaction> transactions) protected Optional<PaymentTransaction>
DefaultPaymentSummaryService.identifyTransactionRequiringNextAction
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions, String tenantId) Returns the list of transactions that requires to execute theNextAction
.Modifier and TypeMethodDescriptionprotected boolean
DefaultPaymentSummaryService.isDetachedCreditActingAsRefund
(@NonNull PaymentTransaction transaction) protected boolean
DefaultTransactionSummaryService.isDetachedCreditActingAsRefund
(PaymentTransaction transaction) Modifier and TypeMethodDescriptionprotected TransactionSummary
DefaultTransactionSummaryService.addTransactionsToSummary
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions, @NonNull TransactionSummaryRequest request) protected List<PaymentTransactionRef>
DefaultTransactionSummaryService.buildTransactionRefs
(@NonNull List<PaymentTransaction> transactions, @NonNull TransactionSummaryRequest request) protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineAmountAwaiting3DSResults
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the amount awaiting 3DS results.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineAmountAwaiting3DSResults
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions) Determines the amount awaiting 3DS results.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineAmountAwaitingExternalResults
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the amount awaiting external results.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineAmountAwaitingExternalResults
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions) Determines the amount awaiting external results.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineAuthorizeAmountAwaitingResult
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the authorize amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineAuthorizeAmountAwaitingResult
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the authorize amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineAuthorizedAmount
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the authorized amount of the payment transactions - "total authorized - total reverse-authed".protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineAuthorizedAmount
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the authorized amount of the payment transactions - "total authorized - total reverse-authed".protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineCaptureAmountAwaitingResult
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the capture amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineCaptureAmountAwaitingResult
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the capture amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineCapturedAmount
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the captured amount of the payment transactions - "total captured - total refunded".protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineCapturedAmount
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the captured amount of the payment transactions - "total captured - total refunded".protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineDetachedCreditAmount
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the detached amount of the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineDetachedCreditAmount
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the detached amount of the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineRefundAmountAwaitingResult
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the refund amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineRefundAmountAwaitingResult
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the refund amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineRefundedAmount
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the refunded amount of the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineRefundedAmount
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the refunded amount of the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineReverseAuthAmountAwaitingResult
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the reverse authorize amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineReverseAuthAmountAwaitingResult
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the reverse authorize amount awaiting payment gateway result from the payment transactions.protected javax.money.MonetaryAmount
DefaultPaymentSummaryService.determineTotalEverCaptured
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions) Determines the total amount ever captured by the payment transactions.protected javax.money.MonetaryAmount
DefaultTransactionSummaryService.determineTotalEverCaptured
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) Determines the total amount ever captured by the payment transactions.protected List<PaymentTransaction>
DefaultPaymentSummaryService.filterByTransactionSourceEntity
(@NonNull List<PaymentTransaction> transactions, String sourceEntityType, String sourceEntityId) protected List<PaymentTransaction>
DefaultPaymentSummaryService.filterByTransactionSourceEntityTypes
(List<PaymentTransaction> transactions, Set<String> sourceEntityTypes) protected List<PaymentTransaction>
DefaultPaymentSummaryService.filterOutNonSuccessfulAndReversedTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutNonSuccessfulAndReversedTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutNonSuccessfulTransactions
(@NonNull List<PaymentTransaction> transactions) protected List<PaymentTransaction>
DefaultTransactionSummaryService.filterOutReversedOrReversalTransactions
(@NonNull List<PaymentTransaction> transactions) protected boolean
DefaultPaymentSummaryService.hasTransactionFlaggedForManualReview
(@NonNull List<PaymentTransaction> filteredTransactions) protected Optional<PaymentTransaction>
DefaultPaymentSummaryService.identifyTransactionRequiringNextAction
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions, String tenantId) Returns the list of transactions that requires to execute theNextAction
.protected void
DefaultPaymentSummaryService.setNextActionIfNeeded
(@NonNull PaymentSummary paymentSummary, @NonNull List<PaymentTransaction> transactions, String tenantId) Sets thePaymentSummary.getNextAction()
for thegetNextAction()
if exists.protected void
DefaultPaymentSummaryService.updatePaymentSummaryForAmountAwaiting3DSResults
(PaymentSummary paymentSummary, List<PaymentTransaction> transactions) UpdatePaymentSummary
forPaymentTransactions
that are awaiting 3DS results.protected void
DefaultPaymentSummaryService.updatePaymentSummaryForAmountAwaitingExternalResults
(PaymentSummary paymentSummary, List<PaymentTransaction> transactions) UpdatePaymentSummary
forPaymentTransactions
that are awaiting external results.protected void
DefaultPaymentSummaryService.updatePaymentSummaryForPendingAmounts
(PaymentSummary paymentSummary, List<PaymentTransaction> transactions) UpdatePaymentSummary
forPaymentTransactions
that are awaiting async results or 3DS results.protected void
DefaultPaymentSummaryService.updatePaymentSummaryProcessedAmounts
(PaymentSummary paymentSummary, List<PaymentTransaction> nonReversedTransactions) UpdatePaymentSummary
forPaymentTransactions
that are successful.protected void
DefaultTransactionSummaryService.updateTransactionSummaryForAmountAwaiting3DSResults
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions) UpdateTransactionSummary
forPaymentTransactions
that are awaiting 3DS results.protected void
DefaultTransactionSummaryService.updateTransactionSummaryForAmountAwaitingExternalResults
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions) UpdateTransactionSummary
forPaymentTransactions
that are awaiting external results.protected void
DefaultTransactionSummaryService.updateTransactionSummaryForPendingAmounts
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> transactions) UpdateTransactionSummary
forPaymentTransactions
that are awaiting async results or 3DS results.protected void
DefaultTransactionSummaryService.updateTransactionSummaryProcessedAmounts
(@NonNull TransactionSummary transactionSummary, List<PaymentTransaction> nonReversedTransactions) UpdateTransactionSummary
forPaymentTransactions
that are successful.protected TransactionSummary
DefaultTransactionSummaryService.updateTransactionSummaryTotals
(@NonNull TransactionSummary transactionSummary, @NonNull List<PaymentTransaction> transactions) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.utils
Modifier and TypeMethodDescriptionTransactionWithExecutableAmount.getTransaction()
ThePaymentTransaction
to keep track of.Modifier and TypeMethodDescriptionDefaultTransactionExecutionUtil.buildTransactionExecutionDetail
(Payment payment, @NonNull PaymentTransaction transaction, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) TransactionExecutionUtil.buildTransactionExecutionDetail
(Payment payment, PaymentTransaction transaction, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) Builds aTransactionExecutionDetail
based on the providedTransactionExecutionRequest
andPaymentTransaction
.DefaultTransactionExecutionUtil.buildTransactionExecutionResponse
(Payment payment, @NonNull PaymentTransaction transaction, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) default TransactionExecutionResponse
TransactionExecutionUtil.buildTransactionExecutionResponse
(Payment payment, PaymentTransaction transaction) TransactionExecutionUtil.buildTransactionExecutionResponse
(Payment payment, PaymentTransaction transaction, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) protected TransactionWithExecutableAmount
DefaultTransactionExecutionUtil.buildTransactionWithExecutableAmount
(PaymentTransaction parentTransaction, List<PaymentTransaction> transactions) Builds aTransactionWithExecutableAmount
based on the givenPaymentTransaction
.protected javax.money.MonetaryAmount
DefaultTransactionExecutionUtil.getTransactionExecutableAmount
(@NonNull PaymentTransaction parentTransaction, @NonNull List<PaymentTransaction> transactions) Gets the executable amount for the givenPaymentTransaction
, which is thegetAmount()
- reversed amount from all the child reversing transactions.protected boolean
DefaultTransactionExecutionUtil.isReverseTransaction
(PaymentTransaction transaction, PaymentTransaction maybeReverseTransaction) Determines if the secondPaymentTransaction
is a reverse of the firstPaymentTransaction
.protected boolean
DefaultTransactionExecutionUtil.isSubsequentTransaction
(PaymentTransaction transaction, PaymentTransaction maybeSubsequentTransaction) Determines if the secondPaymentTransaction
is a subsequent of the firstPaymentTransaction
.protected boolean
DefaultTransactionExecutionUtil.isTransactionParentSourceEntity
(@NonNull PaymentTransaction transaction, @NonNull TransactionExecutionRequest request) Deprecated, for removal: This API element is subject to removal in a future version.this method is not used anymorevoid
TransactionWithExecutableAmount.setTransaction
(PaymentTransaction transaction) ThePaymentTransaction
to keep track of.Modifier and TypeMethodDescriptionprotected TransactionWithExecutableAmount
DefaultTransactionExecutionUtil.buildTransactionWithExecutableAmount
(PaymentTransaction parentTransaction, List<PaymentTransaction> transactions) Builds aTransactionWithExecutableAmount
based on the givenPaymentTransaction
.protected javax.money.MonetaryAmount
DefaultTransactionExecutionUtil.getTransactionExecutableAmount
(@NonNull PaymentTransaction parentTransaction, @NonNull List<PaymentTransaction> transactions) Gets the executable amount for the givenPaymentTransaction
, which is thegetAmount()
- reversed amount from all the child reversing transactions. -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.validation
Modifier and TypeMethodDescriptionvoid
DefaultPaymentTransactionVersionValidationService.validateVersionForArchival
(PaymentTransaction paymentTransaction, Integer versionToTest) void
PaymentTransactionVersionValidationService.validateVersionForArchival
(PaymentTransaction paymentTransaction, Integer versionToTest) Determines if the providedversionToTest
is valid for an archival of thePaymentTransaction
.void
DefaultPaymentTransactionVersionValidationService.validateVersionForUpdate
(PaymentTransaction paymentTransaction, Integer versionToTest) void
PaymentTransactionVersionValidationService.validateVersionForUpdate
(PaymentTransaction paymentTransaction, Integer versionToTest) Determines if the providedversionToTest
is valid for an update of thePaymentTransaction
.boolean
DefaultPaymentTransactionVersionValidationService.versionIsStale
(PaymentTransaction paymentTransaction, Integer versionToTest) boolean
PaymentTransactionVersionValidationService.versionIsStale
(PaymentTransaction paymentTransaction, Integer versionToTest) Determines if the providedversionToTest
is valid for thePaymentTransaction
. -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.service.webhook
Modifier and TypeMethodDescriptionprotected PaymentTransaction
DefaultTransactionWebhookService.createChildTransactionAndRecordResponse
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String managementStateReason, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.createChildTransactionAndRecordResponse
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleAwaitingAsyncTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleFraudReviewTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleHostedPaymentPageSetupTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleSubsequentTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleThreeDSTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.identifyParentTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) protected PaymentTransaction
DefaultTransactionWebhookService.identifyTransaction
(@NonNull com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.recordFraudReviewResults
(@NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the providedPaymentTransaction
to indicate that the fraud review is finalized/closed & records the results of that review.protected PaymentTransaction
DefaultTransactionWebhookService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, @NonNull PaymentTransaction parentAuthTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.recordSubsequentTransactionResults
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds & records aPaymentTransaction
based on thePaymentResponse
which has been identified as a subsequent transaction to the provided parent transaction.protected PaymentTransaction
DefaultTransactionWebhookService.recordTransactionResponse
(@NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.updateChild3DSTransaction
(@NonNull PaymentTransaction threeDSResultTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the child 3DS transaction based on the givenPaymentResponse
.protected PaymentTransaction
DefaultTransactionWebhookService.updateChildTransactionResults
(@NonNull PaymentTransaction externalTransactionResult, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String managementStateReason, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the child external transaction based on the givenPaymentResponse
.Modifier and TypeMethodDescriptionprotected Optional<PaymentTransaction>
DefaultTransactionWebhookService.get3DSTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS) protected Optional<PaymentTransaction>
DefaultTransactionWebhookService.getChildTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternalInteraction) protected PaymentTransactionService<PaymentTransaction>
DefaultTransactionWebhookService.getPaymentTransactionService()
Modifier and TypeMethodDescriptionprotected PaymentTransaction
DefaultTransactionWebhookService.createChildTransactionAndRecordResponse
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String managementStateReason, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.createChildTransactionAndRecordResponse
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected Optional<PaymentTransaction>
DefaultTransactionWebhookService.get3DSTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiring3DS) protected Optional<PaymentTransaction>
DefaultTransactionWebhookService.getChildTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction transactionRequiringExternalInteraction) protected PaymentTransaction
DefaultTransactionWebhookService.handleAwaitingAsyncTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleFraudReviewTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleHostedPaymentPageSetupTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleSubsequentTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.handleThreeDSTransactionResult
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.identifyParentTransaction
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) protected Payment
DefaultTransactionWebhookService.identifyPaymentForTransaction
(com.broadleafcommerce.paymentgateway.domain.TransactionIdentifier transactionIdentifier, PaymentTransaction paymentTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected boolean
DefaultTransactionWebhookService.isFraudReviewResult
(@NonNull PaymentTransaction paymentTransaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) protected boolean
DefaultTransactionWebhookService.isHostedPaymentPageSetupTransaction
(@NonNull PaymentTransaction paymentTransaction) protected boolean
DefaultTransactionWebhookService.isSubsequentTransactionResult
(@NonNull Payment payment, @NonNull PaymentTransaction paymentTransaction, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse) Determines if thePaymentResponse
results represent a subsequent transaction that was executed after the knownPaymentTransaction
.protected PaymentTransaction
DefaultTransactionWebhookService.recordFraudReviewResults
(@NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the providedPaymentTransaction
to indicate that the fraud review is finalized/closed & records the results of that review.protected PaymentTransaction
DefaultTransactionWebhookService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, @NonNull PaymentTransaction parentAuthTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.recordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected PaymentTransaction
DefaultTransactionWebhookService.recordSubsequentTransactionResults
(@NonNull PaymentTransaction parentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds & records aPaymentTransaction
based on thePaymentResponse
which has been identified as a subsequent transaction to the provided parent transaction.protected PaymentTransaction
DefaultTransactionWebhookService.recordTransactionResponse
(@NonNull PaymentTransaction paymentTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultTransactionWebhookService.sendTransactionWebhookMessage
(Payment payment, PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected boolean
DefaultTransactionWebhookService.shouldRecordImpliedReverseAuth
(@NonNull Payment payment, @NonNull PaymentTransaction captureTransaction) protected PaymentTransaction
DefaultTransactionWebhookService.updateChild3DSTransaction
(@NonNull PaymentTransaction threeDSResultTransaction, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the child 3DS transaction based on the givenPaymentResponse
.protected PaymentTransaction
DefaultTransactionWebhookService.updateChildTransactionResults
(@NonNull PaymentTransaction externalTransactionResult, @NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull String managementStateReason, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates the child external transaction based on the givenPaymentResponse
.ModifierConstructorDescriptionDefaultTransactionWebhookService
(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) -
Uses of PaymentTransaction in com.broadleafcommerce.paymenttransaction.web.endpoint
Modifier and TypeMethodDescriptionprotected PaymentTransactionService<PaymentTransaction>
ExternalTransactionResultEndpoint.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
PaymentTransactionManagementEndpoint.getPaymentTransactionService()
protected PaymentTransactionService<PaymentTransaction>
ThreeDSTransactionResultEndpoint.getPaymentTransactionService()
ModifierConstructorDescriptionExternalTransactionResultEndpoint
(ExternalTransactionResultService externalTransactionResultService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService) PaymentTransactionManagementEndpoint
(PaymentService<Payment> paymentService, PaymentSummaryService paymentSummaryService, PaymentTransactionService<PaymentTransaction> paymentTransactionService) ThreeDSTransactionResultEndpoint
(ThreeDSTransactionResultService threeDSTransactionResultService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService)
DefaultPaymentManagementService.requestReversalForEligibleTransactions(Payment, String, ContextInfo)