Interface CheckoutComFlowSessionService

All Known Implementing Classes:
DefaultCheckoutComFlowSessionService

public interface CheckoutComFlowSessionService
The service to handle payment sessions through Checkout.com Flow.
Author:
Marie Standeven (marieStandeven)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    createPaymentSession(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
    Creates a PaymentSession with Checkout.com to initiate the Flow UI.
  • Method Details

    • createPaymentSession

      com.broadleafcommerce.paymentgateway.domain.PaymentResponse createPaymentSession(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
      Creates a PaymentSession with Checkout.com to initiate the Flow UI. The PaymentSession is added to the PaymentResponse.getNextAction() and returned.
      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