com.softslate.commerce.businessobjects.payment.google.notification
Class NewOrderNotificationProcessorImpl
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.payment.google.notification.AbstractNotificationProcessor
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.NewOrderNotification)
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
|
private com.google.checkout.MerchantConstants |
merchantConstants
|
Method Summary |
com.google.checkout.MerchantConstants |
getMerchantConstants()
|
java.lang.String |
process(com.google.checkout.notification.NewOrderNotification newOrderNotification)
|
void |
setMerchantConstants(com.google.checkout.MerchantConstants merchantConstants)
|
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, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
merchantConstants
private com.google.checkout.MerchantConstants merchantConstants
NewOrderNotificationProcessorImpl
public NewOrderNotificationProcessorImpl()
setMerchantConstants
public void setMerchantConstants(com.google.checkout.MerchantConstants merchantConstants)
getMerchantConstants
public com.google.checkout.MerchantConstants getMerchantConstants()
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?2005