Package com.google.checkout.example

Examples of com.google.checkout.example.GoogleOrder


   */
  public String process(RiskInformationNotification notification)
      throws CheckoutException {
    try {
      String ack = getAckString();
      GoogleOrder order = GoogleOrder.findOrCreate(merchantConstants
          .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


   */
  public String process(OrderStateChangeNotification notification)
      throws CheckoutException {
    try {
      String ack = getAckString();
      GoogleOrder order = GoogleOrder.findOrCreate(merchantConstants
          .getMerchantId(), notification.getGoogleOrderNo());
      order.setLastFulStatus(notification.getNewFulfillmentOrderState()
          .toString());
      order.setLastFinStatus(notification.getNewFinancialOrderState()
          .toString());
      order.addIncomingMessage(notification.getTimestamp(), notification
          .getRootNodeName(), notification.getXmlPretty(), ack);
      return ack;
    } catch (Exception e) {
      throw new CheckoutException(e);
    }
View Full Code Here

   */
  public String process(ChargebackAmountNotification notification)
      throws CheckoutException {
    try {
      String ack = getAckString();
      GoogleOrder order = GoogleOrder.findOrCreate(merchantConstants
          .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

   */
  public String process(NewOrderNotification notification)
      throws CheckoutException {
    try {
      String ack = getAckString();
      GoogleOrder order = GoogleOrder.findOrCreate(merchantConstants
          .getMerchantId(), notification.getGoogleOrderNo());

      order.setLastFulStatus(notification.getFulfillmentOrderState()
          .toString());
      order.setLastFinStatus(notification.getFinancialOrderState()
          .toString());
      order.setBuyerEmail(notification.getBuyerBillingAddress()
          .getEmail());
      order.setOrderAmount("" + notification.getOrderTotal());
      order.addIncomingMessage(notification.getTimestamp(), notification
          .getRootNodeName(), notification.getXmlPretty(), ack);
      return ack;
    } catch (Exception e) {
      throw new CheckoutException(e);
    }
View Full Code Here

TOP

Related Classes of com.google.checkout.example.GoogleOrder

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.