Class DefaultStoreCreditTransactionService

java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultStoreCreditTransactionService
All Implemented Interfaces:
StoreCreditTransactionService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware

public class DefaultStoreCreditTransactionService extends Object implements StoreCreditTransactionService
The default implementation of the transaction service that is used to execute transactions.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultStoreCreditTransactionService

      public DefaultStoreCreditTransactionService(StoreCreditExternalCallService creditAccountExternalCallService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • authorizeAndCapture

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorizeAndCapture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      authorizeAndCapture in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • refund

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse refund(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      refund in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • getGatewayType

      public String getGatewayType()
      Specified by:
      getGatewayType in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
    • validatePaymentRequest

      protected void validatePaymentRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
    • getCreditAccountExternalCallService

      protected StoreCreditExternalCallService getCreditAccountExternalCallService()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()