@Test public void executePaymentOperationTest() { Payment payment = null; try { payment = wirecardHopPaymentOperationsFacade.executePaymentOperation(operation, paymentOperationData); } catch (WirecardPaymenException e) { e.printStackTrace(); } assertEquals("The payment is not correct", payment, this.payment); }
@Override public Payment executePaymentOperation(PaymentOperationData data) throws WirecardPaymenException { Payment response; CartModel sessionCart = cartService.getSessionCart(); LOG.info(START_OPERATION_LOG_MSG, sessionCart.getPaymentMode().getCode(), WirecardPaymentTransactionConstants.AUTHORIZATION, sessionCart.getCode()); response = getPaymentOperationStrategy().getOperation(sessionCart.getPaymentMode()) .doOperation(sessionCart, data); if (response == null) { throw new WirecardPaymenException(WirecardPaymentExceptionConstants.NULL_ERROR); } if (LOG.isInfoEnabled()) { LOG.info(RESPONSE_STATUS_LOG_MSG, response.getPaymentMethods().getPaymentMethod().get(0).getName().value(), response.getTransactionType().value(), response.getTransactionState().value()); } return response; }
DefaultWirecardHopPaymentOperationsFacade implements WirecardHopPaymentOperationsFacade { @Override public Payment executePaymentOperation(PaymentOperationData data) throws WirecardPaymenException { Payment response; CartModel sessionCart = cartService.getSessionCart(); LOG.info(START_OPERATION_LOG_MSG, sessionCart.getPaymentMode().getCode(), WirecardPaymentTransactionConstants.AUTHORIZATION, sessionCart.getCode()); response = getPaymentOperationStrategy().getOperation(sessionCart.getPaymentMode()) .doOperation(sessionCart, data); if (response == null) { throw new WirecardPaymenException(WirecardPaymentExceptionConstants.NULL_ERROR); } if (LOG.isInfoEnabled()) { LOG.info(RESPONSE_STATUS_LOG_MSG, response.getPaymentMethods().getPaymentMethod().get(0).getName().value(), response.getTransactionType().value(), response.getTransactionState().value()); } return response; } }
DefaultWirecardHopPaymentOperationsFacade implements WirecardHopPaymentOperationsFacade { @Override public Payment executePaymentOperation(PaymentOperationData data) throws WirecardPaymenException { Payment response; CartModel sessionCart = cartService.getSessionCart(); LOG.info(START_OPERATION_LOG_MSG, sessionCart.getPaymentMode().getCode(), WirecardPaymentTransactionConstants.AUTHORIZATION, sessionCart.getCode()); response = getPaymentOperationStrategy().getOperation(sessionCart.getPaymentMode()) .doOperation(sessionCart, data); if (response == null) { throw new WirecardPaymenException(WirecardPaymentExceptionConstants.NULL_ERROR); } if (LOG.isInfoEnabled()) { LOG.info(RESPONSE_STATUS_LOG_MSG, response.getPaymentMethods().getPaymentMethod().get(0).getName().value(), response.getTransactionType().value(), response.getTransactionState().value()); } return response; }  }
DefaultWirecardHopPaymentOperationsFacade implements WirecardHopPaymentOperationsFacade { @Override public Payment executePaymentOperation(PaymentOperationData data) throws WirecardPaymenException { Payment response; CartModel sessionCart = cartService.getSessionCart(); LOG.info(START_OPERATION_LOG_MSG, sessionCart.getPaymentMode().getCode(), WirecardPaymentTransactionConstants.AUTHORIZATION, sessionCart.getCode()); response = getPaymentOperationStrategy().getOperation(sessionCart.getPaymentMode()) .doOperation(sessionCart, data); if (response == null) { throw new WirecardPaymenException(WirecardPaymentExceptionConstants.NULL_ERROR); } if (LOG.isInfoEnabled()) { LOG.info(RESPONSE_STATUS_LOG_MSG, response.getPaymentMethods().getPaymentMethod().get(0).getName().value(), response.getTransactionType().value(), response.getTransactionState().value()); } return response; }  @Override Payment executePaymentOperation(PaymentOperationData data); @Override Payment executePaymentOperation(final String operation, final PaymentOperationData data); @Override Payment executePaymentOperation(String operation, PaymentOperationData data, String orderNumber); @Override String getPaymentResponseFromWirecard(String paymentCode, String requestId); @Override String getIdealBic(); @Override void setIdealBic(String bic); @Override boolean isSaveInAccount(); @Override void setIsSaveInAccount(boolean isSaveInAccount); @Override boolean isSavedCC(); @Override void setIsSavedCC(boolean isSavedCC); @Override Payment parseMessage(String content, boolean isEncoded, boolean checkSignature); @Required void setPaymentOperationStrategy(PaymentOperationStrategy paymentOperationStrategy); @Required void setUserService(final UserService userService); void setCartService(CartService cartService); @Required void setAddressConverter(Converter<AddressData, AddressModel> addressConverter); @Required void setPaymentConverter(PaymentConverter paymentConverter); @Required void setOrderModelDao(WirecardOrderModelDao orderModelDao); @Required void setPaymentCommandService(PaymentCommandService paymentCommandService); @Required void setSessionService(SessionService sessionService); @Required void setWirecardPaymentConfigurationService(WirecardPaymentConfigurationService wirecardPaymentConfigurationService); @Required void setWirecardPaymentModeService(WirecardPaymentModeService wirecardPaymentModeService); @Required void setAbstractOrderGenericDao(GenericDao<AbstractOrderModel> abstractOrderGenericDao); }
DefaultWirecardHopPaymentOperationsFacade implements WirecardHopPaymentOperationsFacade { @Override public Payment executePaymentOperation(PaymentOperationData data) throws WirecardPaymenException { Payment response; CartModel sessionCart = cartService.getSessionCart(); LOG.info(START_OPERATION_LOG_MSG, sessionCart.getPaymentMode().getCode(), WirecardPaymentTransactionConstants.AUTHORIZATION, sessionCart.getCode()); response = getPaymentOperationStrategy().getOperation(sessionCart.getPaymentMode()) .doOperation(sessionCart, data); if (response == null) { throw new WirecardPaymenException(WirecardPaymentExceptionConstants.NULL_ERROR); } if (LOG.isInfoEnabled()) { LOG.info(RESPONSE_STATUS_LOG_MSG, response.getPaymentMethods().getPaymentMethod().get(0).getName().value(), response.getTransactionType().value(), response.getTransactionState().value()); } return response; }  @Override Payment executePaymentOperation(PaymentOperationData data); @Override Payment executePaymentOperation(final String operation, final PaymentOperationData data); @Override Payment executePaymentOperation(String operation, PaymentOperationData data, String orderNumber); @Override String getPaymentResponseFromWirecard(String paymentCode, String requestId); @Override String getIdealBic(); @Override void setIdealBic(String bic); @Override boolean isSaveInAccount(); @Override void setIsSaveInAccount(boolean isSaveInAccount); @Override boolean isSavedCC(); @Override void setIsSavedCC(boolean isSavedCC); @Override Payment parseMessage(String content, boolean isEncoded, boolean checkSignature); @Required void setPaymentOperationStrategy(PaymentOperationStrategy paymentOperationStrategy); @Required void setUserService(final UserService userService); void setCartService(CartService cartService); @Required void setAddressConverter(Converter<AddressData, AddressModel> addressConverter); @Required void setPaymentConverter(PaymentConverter paymentConverter); @Required void setOrderModelDao(WirecardOrderModelDao orderModelDao); @Required void setPaymentCommandService(PaymentCommandService paymentCommandService); @Required void setSessionService(SessionService sessionService); @Required void setWirecardPaymentConfigurationService(WirecardPaymentConfigurationService wirecardPaymentConfigurationService); @Required void setWirecardPaymentModeService(WirecardPaymentModeService wirecardPaymentModeService); @Required void setAbstractOrderGenericDao(GenericDao<AbstractOrderModel> abstractOrderGenericDao);  }