Package com.jada.order.payment

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.getResponseText();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getReCo() + ": " + approved;
      throw new AuthorizationException(paymentMessage);
View Full Code Here


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

   
    requestHeader.setSetExpressCheckoutRequestDetails(requestDetail);

    SetExpressCheckoutResponseType response = (SetExpressCheckoutResponseType) caller.call("SetExpressCheckout", requestHeader);
    if (!response.getAck().equals(AckCodeType.Success)) {
      throw new PaymentException(response.getAck().getValue().toString());
    }
    token = response.getToken();
  }
View Full Code Here

      GetExpressCheckoutDetailsRequestType checkoutRequest = new GetExpressCheckoutDetailsRequestType();
      checkoutRequest.setToken(token);
   
    GetExpressCheckoutDetailsResponseType responseHeader = (GetExpressCheckoutDetailsResponseType) caller.call("GetExpressCheckoutDetails", checkoutRequest);
    if (!responseHeader.getAck().equals(AckCodeType.Success)) {
      throw new PaymentException(formatErrorMessage(responseHeader));
    }

    GetExpressCheckoutDetailsResponseDetailsType responseDetail = responseHeader.getGetExpressCheckoutDetailsResponseDetails();
    PayerInfoType payer = responseDetail.getPayerInfo();
   
View Full Code Here

      request.setDoExpressCheckoutPaymentRequestDetails(detail);
     
      DoExpressCheckoutPaymentResponseType response = (DoExpressCheckoutPaymentResponseType) caller.call("DoExpressCheckoutPayment", request);
    if (!response.getAck().equals(AckCodeType.Success)) {
      throw new PaymentException(formatErrorMessage(response));
    }
   
//    authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo().getTransactionID();
    authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo(0).getTransactionID();
  }
View Full Code Here

      }
      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

    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

    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);
View Full Code Here

    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);
View Full Code Here

    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

TOP

Related Classes of com.jada.order.payment.PaymentException

Copyright © 2018 www.massapicom. 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.