Examples of ChargebackAmountNotification


Examples of com.google.checkout.ChargebackAmountNotification

      output.output(_message, writer);
      String xml = writer.toString();
      if (LOG.isDebugEnabled()) {
        LOG.debug("Chargeback Amount Notification received: [" + xml + "]");
      }
      ChargebackAmountNotification notification = (ChargebackAmountNotification) Unmarshaller.unmarshal(ChargebackAmountNotification.class, new StringReader(writer.toString()));
      handleNotification(notification);
    } catch (MarshalException e) {
      throw new HandlerException("Error marshalling XML: " + e.getLocalizedMessage(), e);
    } catch (ValidationException e) {
      throw new HandlerException("Error validating XML: " + e.getLocalizedMessage(), e);
View Full Code Here

Examples of com.google.checkout.notification.ChargebackAmountNotification

    MessageHandler {
 
  public String process(MerchantConstants mc, String notificationMsg)
      throws CheckoutException {
    try {
      ChargebackAmountNotification notification =
          new ChargebackAmountNotification(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

Examples of com.google.checkout.notification.ChargebackAmountNotification

      return processor.process(notification);
    }
    if (notificationString.indexOf("chargeback-amount-notification") > -1) {
      ChargebackAmountNotificationProcessor processor = new ChargebackAmountNotificationProcessorImpl(
          mc);
      ChargebackAmountNotification notification = new ChargebackAmountNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("authorization-amount-notification") > -1) {
      AuthorizationAmountNotificationProcessor processor = new AuthorizationAmountNotificationProcessorImpl(
View Full Code Here

Examples of com.google.checkout.notification.ChargebackAmountNotification

      return processor.process(notification);
    }
    if (notificationString.indexOf("chargeback-amount-notification") > -1) {
      ChargebackAmountNotificationProcessor processor = new ChargebackAmountNotificationProcessorImpl(
          mc);
      ChargebackAmountNotification notification = new ChargebackAmountNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("authorization-amount-notification") > -1) {
      AuthorizationAmountNotificationProcessor processor = new AuthorizationAmountNotificationProcessorImpl(
View Full Code Here

Examples of com.google.checkout.notification.ChargebackAmountNotification

                    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

Examples of com.google.checkout.schema._2.ChargebackAmountNotification

 
  private class ChargebackEventHandler extends CallBackEventHandler
      implements ChargebackNotificationListener {
    public void handleEvent(CallBackEvent event) {
      ChargebackNotificationEvent chargeBackEvent = (ChargebackNotificationEvent) event;
      ChargebackAmountNotification chargeBack
        = chargeBackEvent.getChargeBackNote();
      assertSame(ChargebackAmountNotification.class, chargeBack.getClass());
    }
View Full Code Here

Examples of com.google.checkout.schema._2.ChargebackAmountNotification

 
  private class ChargebackEventHandler extends CallBackEventHandler
      implements ChargebackNotificationListener {
    public void handleEvent(CallBackEvent event) {
      ChargebackNotificationEvent chargeBackEvent = (ChargebackNotificationEvent) event;
      ChargebackAmountNotification chargeBack
        = chargeBackEvent.getChargeBackNote();
      assertNotNull(chargeBack.getClass());
    }
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.