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 TypeMethodDescriptioncom.broadleafcommerce.paymentgateway.domain.PaymentResponsecreatePaymentSession(@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 thePaymentResponse.getNextAction()and returned.- Parameters:
paymentRequest- the payment details to build the PaymentSession requestisCapture- whether or capture should be executed immediately after authorization- Returns:
- returns the PaymentResponse with the PaymentSession hydrated as the
NextAction
-