Class ManualPaymentCaptureAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class ManualPaymentCaptureAction
    extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
    implements com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
    The Payment Capture step makes a call to PaymentService to capture on the payment authorization.
    • Field Detail

      • MANUAL_PAYMENT_CAPTURE_SUCCESS

        protected static final java.lang.String MANUAL_PAYMENT_CAPTURE_SUCCESS
        See Also:
        Constant Field Values
      • MANUAL_CAPTURE_PAYMENT_EVENT

        protected static final java.lang.String MANUAL_CAPTURE_PAYMENT_EVENT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManualPaymentCaptureAction

        public ManualPaymentCaptureAction()
    • Method Detail

      • perform

        public com.hybris.cockpitng.actions.ActionResult<OrderModel> perform​(com.hybris.cockpitng.actions.ActionContext<OrderModel> actionContext)
        Specified by:
        perform in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • needsConfirmation

        public boolean needsConfirmation​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • getConfirmationMessage

        public java.lang.String getConfirmationMessage​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • executeManualPaymentCaptureOperation

        protected void executeManualPaymentCaptureOperation​(OrderModel order)
        Executes the manual payment capture release operation by calling the BusinessProcessService.
        Parameters:
        order - the OrderModel to be released
      • getModelService

        protected ModelService getModelService()
      • getNotificationService

        protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()