Package com.google.checkout.notification

Examples of com.google.checkout.notification.RiskInformationNotification


    MessageHandler {
 
  public String process(MerchantConstants mc, String notificationMsg)
  throws CheckoutException {
    try {
      RiskInformationNotification notification =
          new RiskInformationNotification(notificationMsg);
      String ack = getAckString();
      GoogleOrder order = GoogleOrder.findOrCreate(mc.getMerchantId(),
          notification.getGoogleOrderNo());
      order.addIncomingMessage(notification.getTimestamp(), notification
          .getRootNodeName(), notification.getXmlPretty(), ack);
      return ack;
    } catch (Exception e) {
      throw new CheckoutException(e);
    }
  }
View Full Code Here


      return processor.process(notification);
    }
    if (notificationString.indexOf("risk-information-notification") > -1) {
      RiskInformationNotificationProcessor processor = new RiskInformationNotificationProcessorImpl(
          mc);
      RiskInformationNotification notification = new RiskInformationNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("order-state-change-notification") > -1) {
      OrderStateChangeNotificationProcessor processor = new OrderStateChangeNotificationProcessorImpl(
View Full Code Here

      return processor.process(notification);
    }
    if (notificationString.indexOf("risk-information-notification") > -1) {
      RiskInformationNotificationProcessor processor = new RiskInformationNotificationProcessorImpl(
          mc);
      RiskInformationNotification notification = new RiskInformationNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("order-state-change-notification") > -1) {
      OrderStateChangeNotificationProcessor processor = new OrderStateChangeNotificationProcessorImpl(
View Full Code Here

                    Debug.logError(e, module);
                    sendResponse(response, serialNumber, e);
                    return null;
                }
            } else if ("risk-information-notification".equals(nodeValue)) {
                RiskInformationNotification info = new RiskInformationNotification(document);
                String serialNumber = info.getSerialNumber();
                try {
                    helper.processRiskNotification(info);
                    sendResponse(response, serialNumber, null);
                } catch (GeneralException e) {
                    Debug.logError(e, module);
                    sendResponse(response, serialNumber, e);
                    return null;
                }
            } else if ("authorization-amount-notification".equals(nodeValue)) {
                AuthorizationAmountNotification info = new AuthorizationAmountNotification(document);
                String serialNumber = info.getSerialNumber();
                try {
                    helper.processAuthNotification(info);
                    sendResponse(response, serialNumber, null);
                } catch (GeneralException e) {
                    Debug.logError(e, module);
                    sendResponse(response, serialNumber, e);
                    return null;
                }
            } else if ("charge-amount-notification".equals(nodeValue)) {
                ChargeAmountNotification info = new ChargeAmountNotification(document);
                String serialNumber = info.getSerialNumber();
                try {
                    helper.processChargeNotification(info);
                    sendResponse(response, serialNumber, null);
                } catch (GeneralException e) {
                    Debug.logError(e, module);
                    sendResponse(response, serialNumber, e);
                    return null;
                }
            } else if ("chargeback-amount-notification".equals(nodeValue)) {
                ChargebackAmountNotification info = new ChargebackAmountNotification(document);
                String serialNumber = info.getSerialNumber();
                try {
                    helper.processChargeBackNotification(info);
                    sendResponse(response, serialNumber, null);
                } catch (GeneralException e) {
                    Debug.logError(e, module);
                    sendResponse(response, serialNumber, e);
                    return null;
                }
            } else if ("refund-amount-notification".equals(nodeValue)) {
                RefundAmountNotification info = new RefundAmountNotification(document);
                String serialNumber = info.getSerialNumber();
                try {
                    helper.processRefundNotification(info);
                    sendResponse(response, serialNumber, null);
                } catch (GeneralException e) {
                    Debug.logError(e, module);
View Full Code Here

TOP

Related Classes of com.google.checkout.notification.RiskInformationNotification

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.