Examples of PaymentException


Examples of com.jada.order.payment.PaymentException

    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
View Full Code Here

Examples of com.jada.order.payment.PaymentException

    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
View Full Code Here

Examples of com.jada.order.payment.PaymentException

    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
View Full Code Here

Examples of com.jada.order.payment.PaymentException

      }
      catch (Exception e) {
      logger.error(e);
      logger.error("request = " + input);
      logger.error("response = " + line);
      throw new PaymentException(e.getMessage());
      }
      if (ApplicationGlobal.isLocalTesting()) {
        logger.debug("receive > " + line);
      }
      return line;
View Full Code Here

Examples of com.jada.order.payment.PaymentException

//    orderHeader.setOrderStatus(calcStatus(orderHeader));
  }
 
  public void authorizeOrder(PaymentEngine paymentEngine, HttpServletRequest request) throws AuthorizationException, PaymentException, Exception {
    if (!isOpen(orderHeader)) {
      throw new PaymentException("Order is not open");
    }
    if (!shoppingCart.isCashPaymentOrder()) {
      paymentEngine.setCreditCardInfo(creditCardInfo);
      shoppingCart.getPaymentEngine().authorizePayment(orderHeader, request);
      PaymentTran paymentTran = new PaymentTran();
View Full Code Here

Examples of com.jada.order.payment.PaymentException

    // To be implemented when order can be modified in the back office.
  }
 
  public void cancelOrder() throws Exception {
    if (isOpen(orderHeader)) {
      throw new PaymentException("Order is not open");
    }
    orderHeader.setOrderStatus(Constants.ORDERSTATUS_CANCELLED);
  }
View Full Code Here

Examples of com.jada.order.payment.PaymentException

    orderHeader.setOrderStatus(Constants.ORDERSTATUS_CANCELLED);
  }
 
  public void voidOrder() throws Exception {
    if (isCompleted(orderHeader)) {
      throw new PaymentException("Order is not completed");
    }
    orderHeader.setOrderStatus(Constants.ORDERSTATUS_VOIDED);
  }
View Full Code Here

Examples of com.jada.order.payment.PaymentException

  /*
   * Used only when payment has not been authorized.  To be used with shopping cart.
   */
  public void payOrder(PaymentEngine paymentEngine, HttpServletRequest request) throws Exception {
    if (isVoided(orderHeader)) {
      throw new PaymentException("Order is already voided");
    }
    if (paymentEngine != null) {
      paymentEngine.setCreditCardInfo(creditCardInfo);
      paymentEngine.authorizeAndCapturePayment(invoiceHeader, request);
 
View Full Code Here

Examples of com.jada.order.payment.PaymentException

      }
      catch (Exception e) {
      logger.error(e);
      logger.error("request = " + sb.toString());
      logger.error("response = " + line);
      throw new PaymentException(e.getMessage());
      }
      if (ApplicationGlobal.isLocalTesting()) {
        logger.error("receive > " + line);
      }
      return line;
View Full Code Here

Examples of org.broadleafcommerce.common.vendor.service.exception.PaymentException

    }

    @Override
    public PaymentResponseDTO rollbackCapture(PaymentRequestDTO transactionToBeRolledBack) throws PaymentException {
        throw new PaymentException("The Rollback Capture method is not supported for this module");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.