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 Type
    Method
    Description
    com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse
    populateTransactionResponse(@NonNull Payment payment, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull Map<String,Object> transactionResults, String applicationId, String tenantId)
    Creates and populates a GatewayTransactionResponse, 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 a GatewayTransactionResponse, Payment, TransactionType, & transaction results.
      Parameters:
      payment - the cart's payment that we are currently processing
      transactionType - the type of transaction that we are performing on the payment
      transactionResults - the transaction results from the gateway
      applicationId - the application ID for the payment context
      tenantId - the tenant ID for the payment context
      Returns:
      the created GatewayTransactionResponse