Interface TransactionResponseService
- All Known Implementing Classes:
DefaultTransactionResponseService
public interface TransactionResponseService
This service is responsible for building
TransactionResponses
to be passed to PaymentGatewayTransactionConfirmationService methods to save transaction
response from a payment gateway- Author:
- Marie Standeven (mariestandeven)
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponsepopulateTransactionResponse(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull Map<String, Object> transactionResults, String applicationId, String tenantId) Creates and populates aGatewayTransactionResponse,Payment,TransactionType, & transaction results.
-
Method Details
-
populateTransactionResponse
com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse populateTransactionResponse(@NonNull @NonNull Payment payment, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull @NonNull Map<String, Object> transactionResults, @Nullable String applicationId, @Nullable String tenantId) Creates and populates aGatewayTransactionResponse,Payment,TransactionType, & transaction results.- Parameters:
payment- the cart's payment that we are currently processingtransactionType- the type of transaction that we are performing on the paymenttransactionResults- the transaction results from the gatewayapplicationId- the application ID for the payment contexttenantId- the tenant ID for the payment context- Returns:
- the created GatewayTransactionResponse
-