com.softslate.commerce.businessobjects.payment.google.checkout
Class GoogleCheckoutProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
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:
- Gets all google settings from settings table in database
- Gets all shipping options and build shipping options for google
- Gets all possible tax rates and build tax rates table for google
- Finally gets all items in customer cart and build cart for google.
- Author:
- Ashish Jain
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
private com.google.checkout.checkout.CheckoutShoppingCartRequest |
requestProcessor
|
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 |
requestProcessor
private com.google.checkout.checkout.CheckoutShoppingCartRequest requestProcessor
log
static org.apache.commons.logging.Log log
GoogleCheckoutProcessor
public GoogleCheckoutProcessor()
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