com.softslate.commerce.businessobjects.payment.google.notification
Class NewOrderNotificationProcessorImpl

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.payment.google.notification.AbstractNotificationProcessor
              extended by com.softslate.commerce.businessobjects.payment.google.notification.NewOrderNotificationProcessorImpl
All Implemented Interfaces:
com.google.checkout.notification.NewOrderNotificationProcessor, BusinessObject, BusinessProcessor

public class NewOrderNotificationProcessorImpl
extends AbstractNotificationProcessor
implements com.google.checkout.notification.NewOrderNotificationProcessor

This class gets initialized whenever softslate server receives notification from google about new order being placed in google-checkout site. process(com.google.checkout.notification.CheckoutNotification) method processes callback xml from google. It's finds updates order in database using element data in callback xml. This notification callbacks from google are asychronous process which happens behind the scenes, whenever customer places an order using google-checkout.

Author:
ajain,jmcwill

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
NewOrderNotificationProcessorImpl()
           
 
Method Summary
 com.google.checkout.notification.CheckoutNotification createCheckoutNotificationObject(java.lang.String notification)
           
 java.lang.String parseOrderID(com.google.checkout.notification.CheckoutNotification notificationObject)
           
 java.lang.String process(com.google.checkout.notification.CheckoutNotification notificationObject)
           
 java.lang.String process(com.google.checkout.notification.NewOrderNotification newOrderNotification)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.payment.google.notification.AbstractNotificationProcessor
getAckString, getMerchantConstants, setMerchantConstants
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, updateOrderTotals, updateOrderTotals, utils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

NewOrderNotificationProcessorImpl

public NewOrderNotificationProcessorImpl()
Method Detail

parseOrderID

public java.lang.String parseOrderID(com.google.checkout.notification.CheckoutNotification notificationObject)
                              throws com.google.checkout.CheckoutException
Throws:
com.google.checkout.CheckoutException

createCheckoutNotificationObject

public com.google.checkout.notification.CheckoutNotification createCheckoutNotificationObject(java.lang.String notification)
Specified by:
createCheckoutNotificationObject in class AbstractNotificationProcessor

process

public java.lang.String process(com.google.checkout.notification.CheckoutNotification notificationObject)
                         throws com.google.checkout.CheckoutException
Specified by:
process in class AbstractNotificationProcessor
Throws:
com.google.checkout.CheckoutException

process

public java.lang.String process(com.google.checkout.notification.NewOrderNotification newOrderNotification)
                         throws com.google.checkout.CheckoutException
Specified by:
process in interface com.google.checkout.notification.NewOrderNotificationProcessor
Throws:
com.google.checkout.CheckoutException


Copyright © SoftSlate, LLC 2003–2010