Examples of RefundAmountNotification


Examples of com.google.checkout.RefundAmountNotification

      output.output(_message, writer);
      String xml = writer.toString();
      if (LOG.isDebugEnabled()) {
        LOG.debug("Refund Amount Notification received: [" + xml + "]");
      }
      RefundAmountNotification notification = (RefundAmountNotification) Unmarshaller.unmarshal(RefundAmountNotification.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.RefundAmountNotification

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

      return processor.process(notification);
    }
    if (notificationString.indexOf("refund-amount-notification") > -1) {
      RefundAmountNotificationProcessor processor = new RefundNotificationProcessorImpl(
          mc);
      RefundAmountNotification notification = new RefundAmountNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("chargeback-amount-notification") > -1) {
      ChargebackAmountNotificationProcessor processor = new ChargebackAmountNotificationProcessorImpl(
View Full Code Here

Examples of com.google.checkout.notification.RefundAmountNotification

      return processor.process(notification);
    }
    if (notificationString.indexOf("refund-amount-notification") > -1) {
      RefundAmountNotificationProcessor processor = new RefundNotificationProcessorImpl(
          mc);
      RefundAmountNotification notification = new RefundAmountNotification(
          notificationString);
      return processor.process(notification);
    }
    if (notificationString.indexOf("chargeback-amount-notification") > -1) {
      ChargebackAmountNotificationProcessor processor = new ChargebackAmountNotificationProcessorImpl(
View Full Code Here

Examples of com.google.checkout.notification.RefundAmountNotification

                    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.RefundAmountNotification

  private class RefundEventHandler extends CallBackEventHandler
      implements RefundNotificationListener {
    public void handleEvent(CallBackEvent event) {
      RefundNotificationEvent refundEvent = (RefundNotificationEvent) event;
      RefundAmountNotification refundNote = refundEvent.getRefundAmountNote();
      assertSame(RefundAmountNotification.class, refundNote.getClass());
    }
View Full Code Here

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

  private class RefundEventHandler extends CallBackEventHandler
      implements RefundNotificationListener {
    public void handleEvent(CallBackEvent event) {
      RefundNotificationEvent refundEvent = (RefundNotificationEvent) event;
      RefundAmountNotification refundNote = refundEvent.getRefundAmountNote();
      assertNotNull(refundNote.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.