Class DefaultTransactionResponseService
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.DefaultTransactionResponseService
- All Implemented Interfaces:
TransactionResponseService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTransactionResponseService(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.extension.TypeFactoryprotected voidpopulateBillTo(@NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, Address billingAddress) protected voidpopulateShipTo(@NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, Address shipToAddress) com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponsepopulateTransactionResponse(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull Map<String, Object> transactionResults, @NonNull String applicationId, @NonNull String tenantId) Creates and populates aGatewayTransactionResponse,Payment,TransactionType, & transaction results.
-
Constructor Details
-
DefaultTransactionResponseService
public DefaultTransactionResponseService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
populateTransactionResponse
public 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, @NonNull @NonNull String applicationId, @NonNull @NonNull String tenantId) Description copied from interface:TransactionResponseServiceCreates and populates aGatewayTransactionResponse,Payment,TransactionType, & transaction results.- Specified by:
populateTransactionResponsein interfaceTransactionResponseService- 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
-
populateShipTo
protected void populateShipTo(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, @Nullable Address shipToAddress) -
populateBillTo
protected void populateBillTo(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse transactionResponse, @Nullable Address billingAddress) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-