Class DefaultCheckoutComFlowSessionService

java.lang.Object
com.broadleafcommerce.vendor.checkoutcom.service.session.flow.DefaultCheckoutComFlowSessionService
All Implemented Interfaces:
CheckoutComFlowSessionService

public class DefaultCheckoutComFlowSessionService extends Object implements CheckoutComFlowSessionService
Default implementation of CheckoutComFlowSessionService.
  • Constructor Details

  • Method Details

    • createPaymentSession

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse createPaymentSession(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
      Description copied from interface: CheckoutComFlowSessionService
      Creates a PaymentSession with Checkout.com to initiate the Flow UI. The PaymentSession is added to the PaymentResponse.getNextAction() and returned.
      Specified by:
      createPaymentSession in interface CheckoutComFlowSessionService
      Parameters:
      paymentRequest - the payment details to build the PaymentSession request
      isCapture - whether or capture should be executed immediately after authorization
      Returns:
      returns the PaymentResponse with the PaymentSession hydrated as the NextAction
    • buildCreateRequest

      protected com.checkout.handlepaymentsandpayouts.flow.requests.PaymentSessionCreateRequest buildCreateRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest request, boolean isCapture)
    • buildPaymentResponse

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildPaymentResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest request, @NonNull @NonNull com.checkout.handlepaymentsandpayouts.flow.responses.PaymentSessionResponse response, boolean isCapture)
    • getCheckoutApiInitService

      protected CheckoutApiInitService getCheckoutApiInitService()
    • getRequestResponseTransformer

      protected CheckoutComRequestResponseTransformer getRequestResponseTransformer()
    • getProperties

      protected CheckoutConfigurationProperties getProperties()
    • getTypeFactory

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