com.softslate.commerce.businessobjects.payment.google.checkout
Class GoogleCheckoutProcessor

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.checkout.GoogleCheckoutProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, IGoogleCheckoutProcessor

public class GoogleCheckoutProcessor
extends BaseBusinessProcessor
implements IGoogleCheckoutProcessor

Prepares XML payload for google checkout to use. processSetExpressCheckout(Map) gets invoked whenever customer clicks on google checkout express buttom image. processSetExpressCheckout(Map) does the following:

Author:
Ashish Jain

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private  com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor
           
 
Constructor Summary
GoogleCheckoutProcessor()
           
 
Method Summary
protected  com.google.checkout.checkout.CheckoutShoppingCartRequest buildMerchantCheckoutFlowSupport(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor, java.util.Map parameters)
           
protected  com.google.checkout.checkout.CheckoutShoppingCartRequest buildShippingParameter(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor, java.util.Map parameters)
           
protected  com.google.checkout.checkout.CheckoutShoppingCartRequest buildTaxParameter(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor, java.util.Map parameters)
           
 void init(java.util.Map parameters)
           
 com.google.checkout.MerchantConstants initMerchantConstants()
           
 java.util.Map processSetExpressCheckout(java.util.Map parameters)
           
 
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
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

requestProcessor

private com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor

log

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

GoogleCheckoutProcessor

public GoogleCheckoutProcessor()
Method Detail

processSetExpressCheckout

public java.util.Map processSetExpressCheckout(java.util.Map parameters)
                                        throws java.lang.Exception
Specified by:
processSetExpressCheckout in interface IGoogleCheckoutProcessor
Throws:
java.lang.Exception

init

public void init(java.util.Map parameters)
          throws java.lang.Exception
Throws:
java.lang.Exception

initMerchantConstants

public com.google.checkout.MerchantConstants initMerchantConstants()

buildMerchantCheckoutFlowSupport

protected com.google.checkout.checkout.CheckoutShoppingCartRequest buildMerchantCheckoutFlowSupport(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor,
                                                                                                    java.util.Map parameters)
                                                                                             throws java.lang.Exception
Throws:
java.lang.Exception

buildShippingParameter

protected com.google.checkout.checkout.CheckoutShoppingCartRequest buildShippingParameter(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor,
                                                                                          java.util.Map parameters)
                                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

buildTaxParameter

protected com.google.checkout.checkout.CheckoutShoppingCartRequest buildTaxParameter(com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor,
                                                                                     java.util.Map parameters)
                                                                              throws java.lang.Exception
Throws:
java.lang.Exception


Copyright ? SoftSlate, LLC 2003?2005