atg.projects.store.order.purchase
Class BillingInfoFormHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.droplet.EmptyFormHandler
              extended by atg.droplet.GenericFormHandler
                  extended by atg.commerce.order.purchase.PurchaseProcessFormHandler
                      extended by atg.projects.store.order.purchase.BillingInfoFormHandler
All Implemented Interfaces:
atg.commerce.util.PipelineErrorHandler, atg.droplet.DropletFormHandler, atg.naming.AbsoluteNameable, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameContextParentable, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.Configured, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class BillingInfoFormHandler
extends atg.commerce.order.purchase.PurchaseProcessFormHandler

Form Handler for taking billing information.

Version:
$Id: //hosting-blueprint/B2CBlueprint/version/10.2.1/EStore/src/atg/projects/store/order/purchase/BillingInfoFormHandler.java#3 $$Change: 788983 $
Author:
ATG

Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
static java.lang.String COUNTRY_KEY_PREFIX
           
static java.lang.String COUNTRY_STATE_RESOURCES
           
protected  java.lang.String mBillingAddressNickname
          Billing Address nickname
protected  atg.commerce.catalog.CatalogTools mCatalogTools
          Catalog tools.
protected  atg.core.util.ContactInfo mCreditCardBillingAddress
          Credit card billing address
protected  java.lang.String mCreditCardExpirationMonth
          Credit card expiration month
protected  java.lang.String mCreditCardExpirationYear
          Credit card expiration year
protected  java.lang.String mCreditCardNickname
          Credit card nickname.
protected  java.lang.String mCreditCardNumber
          Credit card number
protected  java.lang.String mCreditCardType
          Credit card type
protected  java.lang.String mCreditCardVerificationNumber
          Property for holding the credit card verification number for a stored credit card.
protected  int mMaxNickNameLength
          Maximum nickname length.
protected  int mMinNickNameLength
          Minimum nickname length.
protected  java.lang.String mMoveToConfirmationChainId
          Move to confirmation chain id.
protected  java.lang.String mMoveToConfirmErrorURL
          Move to confirm error redirect URL.
protected  java.lang.String mMoveToConfirmSuccessURL
          Move to confirm success redirect URL.
protected  java.lang.String mNewCreditCardVerificationNumber
          Property for holding the credit card verification number for a new credit card.
protected  boolean mSaveCreditCard
          Should save credit card data.
protected static java.lang.String MSG_ERROR_INCORRECT_STATE
          Error message for incorrect state
protected static java.lang.String MSG_ERROR_MOVE_TO_CONFIRM
          Error while confirmation message key.
protected static java.lang.String MSG_ERROR_UPDATE_ORDER
          Error updating order message key.
protected  StoreConfiguration mStoreConfiguration
          Store configuration.
protected  java.lang.String mStoredAddressSelection
          Stored address selection.
protected  java.lang.String mStoredCreditCardName
          Stores credit card name.
protected  boolean mUsingProfileCreditCard
          Is the credit card saved in the user's profile.
protected  boolean mUsingSavedAddress
          Is the address in the user's profile.
protected  boolean mUsingStoreCredit
          Is order covered with store credit only.
 
Fields inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler
LOCK_NAME_ATTRIBUTE_NAME, PARAM_TRANSACTION_CREATED, PARAM_VALUE_TRUE
 
Fields inherited from class atg.droplet.GenericFormHandler
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
BillingInfoFormHandler()
           
 
Method Summary
 void addAddressValidationFormError(java.util.List pMissingProperties, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Utility method to add form exception.
 void addCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method add and validates the credit card authorization number the credit card if order payment is payed by the credit card.
 void addCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method add and validates the billing Address to the credit card if order payment is payed by the credit card.
 void addCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method is for any processing required after billing info is entered.
protected  void billingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run 'move to confirmation' pipeline chain and update order.
protected  void billingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run 'move to confirm' pipeline chain and update order.
protected  void billingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run 'move to confirmation' pipeline chain and update order.
protected  void billingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run 'move to confirmation' pipeline chain and update order.
 java.lang.String getBillingAddressNickname()
           
 StoreBillingProcessHelper getBillingHelper()
           
 atg.commerce.catalog.CatalogTools getCatalogTools()
           
 CheckoutProgressStates getCheckoutProgressStates()
           
 java.lang.String getCouponCode()
           
 atg.commerce.order.CreditCard getCreditCard()
          Utility method to fetch credit card and set properties from page.
 atg.core.util.ContactInfo getCreditCardBillingAddress()
           
 java.lang.String getCreditCardExpirationMonth()
           
 java.lang.String getCreditCardExpirationYear()
           
 java.lang.String getCreditCardNickname()
           
 java.lang.String getCreditCardNumber()
           
 atg.payment.creditcard.ExtendableCreditCardTools getCreditCardTools()
           
 java.lang.String getCreditCardType()
           
 java.lang.String getCreditCardVerificationNumber()
           
 int getMaxNickNameLength()
           
 int getMinNickNameLength()
           
 java.lang.String getMoveToConfirmationChainId()
           
 java.lang.String getMoveToConfirmErrorURL()
           
 java.lang.String getMoveToConfirmSuccessURL()
           
 java.lang.String getNewCreditCardVerificationNumber()
           
 StoreConfiguration getStoreConfiguration()
           
 java.lang.String getStoredAddressSelection()
           
 java.lang.String getStoredCreditCardName()
           
 boolean handleApplyStoreCreditsToOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Apply available store credits to order.
 boolean handleBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Move to confirmation using new billing address and new credit card info.
 boolean handleBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Move to confirmation using saved billing address and new credit card info.
 boolean handleBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Move to confirmation using saved credit card.
 boolean handleBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Move to confirmation using only store credit as payment method.
 void initializeBillingAddressSelection()
          Sets initial values to storedAddressSelection and usingSavedAddress fields based on the order
 void initializeCreditCardSelection()
          Sets initial values to storedCreditCardName and usingProfileCreditCard fields based on the order
 boolean isSaveBillingAddress()
           
 boolean isSaveCreditCard()
           
 boolean isUsingProfileCreditCard()
           
 boolean isUsingSavedAddress()
           
 boolean isUsingStoreCredit()
           
 boolean moveToConfirmExceptionHandling(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Deal with error in move to confirm operation.
 void postAddCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Carry out any operations required after a credit card authorization number is added.
 void postAddCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Carry out any operations required after a billing address is added to a credit card.
 void postAddCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method is for any processing required after billing info is entered.
protected  void postBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Add credit card to user profile, update checkout level.
protected  void postBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Add newly created card to profile, update checkout progress level.
protected  void postBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Save billing address as default if user doesn't have one, update checkout level.
protected  void postBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Update checkout progress level.
 void postSetupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Update checkout states with CONFIRM level.
 void postSetupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method is post setup of store credit payment groups.
 void preAddCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method performs any operations required before the credit card authorization number is added.
 void preAddCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method performs any operations required before the billing address is added to the credit card.
 void preAddCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method is for any processing required after billing info is entered.
protected  void preBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Setup credit card payment group and validate user input.
protected  void preBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Setup credit card payment and validate user input.
protected  void preBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Setup credit card payment group for billing with saved card and validate credit card input.
protected  void preBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Tender coupon before billing with store credit occurs.
 void preSetupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method performs any pre-initialization needed to setup the Credit Card Payment group for the order.
 void preSetupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method to perform any pre-initialization of StoreCredit Payment group for the order if store credit is used.
protected  void processOrderBilling(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run pipeline chain responsible for order billing and update (save) order.
 void runProcessMoveToConfirmation(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Run the 'moveToConfirmation' pipeline.
 void setBillingAddressNickname(java.lang.String pBillingAddressNickname)
           
 void setBillingHelper(StoreBillingProcessHelper pBillingHelper)
           
 void setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
           
 void setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
           
 void setCouponCode(java.lang.String pCouponCode)
           
 void setCreditCardBillingAddress(atg.core.util.ContactInfo pCreditCardBillingAddress)
           
 void setCreditCardExpirationMonth(java.lang.String pCreditCardExpirationMonth)
           
 void setCreditCardExpirationYear(java.lang.String pCreditCardExpirationYear)
           
 void setCreditCardNickname(java.lang.String pCreditCardNickname)
           
 void setCreditCardNumber(java.lang.String pCreditCardNumber)
           
 void setCreditCardTools(atg.payment.creditcard.ExtendableCreditCardTools pCreditCardTools)
           
 void setCreditCardType(java.lang.String pCreditCardType)
           
 void setCreditCardVerificationNumber(java.lang.String pCreditCardVerificationNumber)
           
 void setMaxNickNameLength(int pMaxNickNameLength)
           
 void setMinNickNameLength(int pMinNickNameLength)
           
 void setMoveToConfirmationChainId(java.lang.String pMoveToConfirmationChainId)
           
 void setMoveToConfirmErrorURL(java.lang.String pMoveToConfirmErrorURL)
           
 void setMoveToConfirmSuccessURL(java.lang.String pMoveToConfirmSuccessURL)
           
 void setNewCreditCardVerificationNumber(java.lang.String pNewCreditCardVerificationNumber)
           
 void setSaveBillingAddress(boolean pSaveBillingAddress)
           
 void setSaveCreditCard(boolean pSaveCreditCard)
           
 void setStoreConfiguration(StoreConfiguration pStoreConfiguration)
           
 void setStoredAddressSelection(java.lang.String pStoredAddressSelection)
           
 void setStoredCreditCardName(java.lang.String pStoredCreditCardName)
           
 void setupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method initialize and setup Credit Card Payment group for the order, if store credit is used, then all amount from the order deducted by the store credit, then by credit card.
 void setupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method initialize and setup StoreCredit Payment group for the order if store credit is used.
 void setUsingProfileCreditCard(boolean pUsingProfileCreditCard)
           
 void setUsingSavedAddress(boolean pUsingSavedAddress)
           
 void setUsingStoreCredit(boolean pUsingStoreCredit)
           
protected  void updateCheckoutProgressState()
          If no errors, update checkout progress state with CONFIRM level.
protected  boolean validateBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Validates the billing address, Not Validate, if Order Amount is not payed by Credit Card.
protected  void validateCreditCardAuthorizationNumber(java.lang.String pAuthNumber, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Verifies that the auth number is valued and a number.
 boolean validateCreditCardInput(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method uses the CreditCardTools to validate the credit card.
 boolean validateCreditCardNicknameInput(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method validates the credit card nickname if one is required.
 
Methods inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler
acquireTransactionLock, acquireTransactionLock, afterSet, beforeSet, checkFormRedirect, commitTransaction, copyConfiguration, createRepriceParameterMap, defaultLocalLockManager, defaultUserProfile, doStartService, ensureTransaction, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getClaimableManager, getCommerceIdentifierPaymentInfoContainer, getCommerceItemManager, getCommerceItemShippingInfoContainer, getCommerceProfileTools, getCommercePropertyManager, getConfiguration, getCurrentTransaction, getDefaultLocale, getGiftlistManager, getHandlingInstructionManager, getLocalLockManager, getOrder, getOrderManager, getPaymentGroupManager, getPaymentGroupMapContainer, getPipelineManager, getPriceList, getPriceListId, getPriceListManager, getProfile, getProfileRepository, getPurchaseProcessHelper, getRepeatingRequestMonitor, getRepriceOrderChainId, getResourceBundle, getResourceBundle, getResourceBundleName, getSessionExpirationURL, getShippingGroupManager, getShippingGroupMapContainer, getShoppingCart, getTransactionManager, getUserLocale, getUserLocale, getUserPricingModels, handlePipelineError, isConcurrentUpdate, isEnsureTransaction, isFormSubmission, isTransactionCreated, isTransactionMarkedAsRollBack, isUseLocksAroundTransactions, isUseRequestLocale, processException, processPipelineErrors, releaseTransactionLock, releaseTransactionLock, runProcess, runProcess, runProcess, runProcessRepriceOrder, runProcessRepriceOrder, runRepricingProcess, setClaimableManager, setCommerceIdentifierPaymentInfoContainer, setCommerceItemManager, setCommerceItemShippingInfoContainer, setCommerceProfileTools, setCommercePropertyManager, setConfiguration, setCurrentTransaction, setDefaultLocale, setEnsureTransaction, setGiftlistManager, setHandlingInstructionManager, setLocalLockManager, setOrder, setOrderManager, setPaymentGroupManager, setPaymentGroupMapContainer, setPipelineManager, setPriceListId, setPriceListManager, setProfile, setProfileRepository, setPurchaseProcessHelper, setRepeatingRequestMonitor, setRepriceOrderChainId, setSessionExpirationURL, setShippingGroupManager, setShippingGroupMapContainer, setShoppingCart, setTransactionCreated, setTransactionManager, setTransactionToRollbackOnly, setUseLocksAroundTransactions, setUseRequestLocale, setUserLocale, setUserPricingModels, transactionLockName, unsetTransactionCreated
 
Methods inherited from class atg.droplet.GenericFormHandler
addFormException, addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
 
Methods inherited from class atg.droplet.EmptyFormHandler
afterGet, beforeGet
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string.

See Also:
Constant Field Values

COUNTRY_KEY_PREFIX

public static final java.lang.String COUNTRY_KEY_PREFIX
See Also:
Constant Field Values

COUNTRY_STATE_RESOURCES

public static final java.lang.String COUNTRY_STATE_RESOURCES
See Also:
Constant Field Values

MSG_ERROR_MOVE_TO_CONFIRM

protected static final java.lang.String MSG_ERROR_MOVE_TO_CONFIRM
Error while confirmation message key.

See Also:
Constant Field Values

MSG_ERROR_UPDATE_ORDER

protected static final java.lang.String MSG_ERROR_UPDATE_ORDER
Error updating order message key.

See Also:
Constant Field Values

MSG_ERROR_INCORRECT_STATE

protected static final java.lang.String MSG_ERROR_INCORRECT_STATE
Error message for incorrect state

See Also:
Constant Field Values

mCreditCardVerificationNumber

protected java.lang.String mCreditCardVerificationNumber
Property for holding the credit card verification number for a stored credit card.


mNewCreditCardVerificationNumber

protected java.lang.String mNewCreditCardVerificationNumber
Property for holding the credit card verification number for a new credit card.


mSaveCreditCard

protected boolean mSaveCreditCard
Should save credit card data.


mStoredCreditCardName

protected java.lang.String mStoredCreditCardName
Stores credit card name.


mStoredAddressSelection

protected java.lang.String mStoredAddressSelection
Stored address selection.


mMoveToConfirmationChainId

protected java.lang.String mMoveToConfirmationChainId
Move to confirmation chain id.


mBillingAddressNickname

protected java.lang.String mBillingAddressNickname
Billing Address nickname


mMinNickNameLength

protected int mMinNickNameLength
Minimum nickname length.


mMaxNickNameLength

protected int mMaxNickNameLength
Maximum nickname length.


mCreditCardNickname

protected java.lang.String mCreditCardNickname
Credit card nickname.


mCreditCardType

protected java.lang.String mCreditCardType
Credit card type


mCreditCardNumber

protected java.lang.String mCreditCardNumber
Credit card number


mCreditCardExpirationMonth

protected java.lang.String mCreditCardExpirationMonth
Credit card expiration month


mCreditCardExpirationYear

protected java.lang.String mCreditCardExpirationYear
Credit card expiration year


mCreditCardBillingAddress

protected atg.core.util.ContactInfo mCreditCardBillingAddress
Credit card billing address


mMoveToConfirmErrorURL

protected java.lang.String mMoveToConfirmErrorURL
Move to confirm error redirect URL.


mMoveToConfirmSuccessURL

protected java.lang.String mMoveToConfirmSuccessURL
Move to confirm success redirect URL.


mStoreConfiguration

protected StoreConfiguration mStoreConfiguration
Store configuration.


mCatalogTools

protected atg.commerce.catalog.CatalogTools mCatalogTools
Catalog tools.


mUsingProfileCreditCard

protected boolean mUsingProfileCreditCard
Is the credit card saved in the user's profile.


mUsingSavedAddress

protected boolean mUsingSavedAddress
Is the address in the user's profile.


mUsingStoreCredit

protected boolean mUsingStoreCredit
Is order covered with store credit only.

Constructor Detail

BillingInfoFormHandler

public BillingInfoFormHandler()
Method Detail

getCheckoutProgressStates

public CheckoutProgressStates getCheckoutProgressStates()
Returns:
the mCheckoutProgressStates

setCheckoutProgressStates

public void setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
Parameters:
pCheckoutProgressStates - the checkoutProgressStates to set

getCouponCode

public java.lang.String getCouponCode()
Returns:
a coupon code to be claimed

setCouponCode

public void setCouponCode(java.lang.String pCouponCode)
Parameters:
pCouponCode - a coupon code to set

getBillingHelper

public StoreBillingProcessHelper getBillingHelper()
Returns:
the mBillingHelper

setBillingHelper

public void setBillingHelper(StoreBillingProcessHelper pBillingHelper)
Parameters:
pBillingHelper - the billingHelper to set

getCreditCardVerificationNumber

public java.lang.String getCreditCardVerificationNumber()
Returns:
the credit card verification number.

setCreditCardVerificationNumber

public void setCreditCardVerificationNumber(java.lang.String pCreditCardVerificationNumber)
Parameters:
pCreditCardVerificationNumber - - the credit card verification number to set.

getNewCreditCardVerificationNumber

public java.lang.String getNewCreditCardVerificationNumber()
Returns:
the new credit card verification number.

setNewCreditCardVerificationNumber

public void setNewCreditCardVerificationNumber(java.lang.String pNewCreditCardVerificationNumber)
Parameters:
pNewCreditCardVerificationNumber - - the credit card verification number to set.

isSaveCreditCard

public boolean isSaveCreditCard()
Returns:
true if user selected to save the credit card, false - otherwise.

setSaveCreditCard

public void setSaveCreditCard(boolean pSaveCreditCard)
Parameters:
pSaveCreditCard - - if user selects to save the credit card.

getStoredCreditCardName

public java.lang.String getStoredCreditCardName()
Returns:
stores credit card name.

setStoredCreditCardName

public void setStoredCreditCardName(java.lang.String pStoredCreditCardName)
Parameters:
pStoredCreditCardName - - stored credit card name.

getStoredAddressSelection

public java.lang.String getStoredAddressSelection()
Returns:
stored address selection.

setStoredAddressSelection

public void setStoredAddressSelection(java.lang.String pStoredAddressSelection)
Parameters:
pStoredAddressSelection - - stored address selection.

getMoveToConfirmationChainId

public java.lang.String getMoveToConfirmationChainId()
Returns:
move to confirmation chain id.

setMoveToConfirmationChainId

public void setMoveToConfirmationChainId(java.lang.String pMoveToConfirmationChainId)
Parameters:
pMoveToConfirmationChainId - - move to confirmation chain id.

getBillingAddressNickname

public java.lang.String getBillingAddressNickname()
Returns:
the billing address nickname.

setBillingAddressNickname

public void setBillingAddressNickname(java.lang.String pBillingAddressNickname)
Parameters:
pBillingAddressNickname - - the billing address nickname to set.

getMinNickNameLength

public int getMinNickNameLength()
Returns:
minimum nickname length.

setMinNickNameLength

public void setMinNickNameLength(int pMinNickNameLength)
Parameters:
pMinNickNameLength - - minimum nickname length.

getMaxNickNameLength

public int getMaxNickNameLength()
Returns:
maximum nickname length.

setMaxNickNameLength

public void setMaxNickNameLength(int pMaxNickNameLength)
Parameters:
pMaxNickNameLength - - maximum nickname length.

getCreditCardNickname

public java.lang.String getCreditCardNickname()
Returns:
the credit card nickname.

setCreditCardNickname

public void setCreditCardNickname(java.lang.String pCreditCardNickname)
Parameters:
pCreditCardNickname - - the credit card nickname to set.

getCreditCardType

public java.lang.String getCreditCardType()
Returns:
the credit card ype.

setCreditCardType

public void setCreditCardType(java.lang.String pCreditCardType)
Parameters:
pCreditCardType - - the credit card type to set.

getCreditCardNumber

public java.lang.String getCreditCardNumber()
Returns:
the creditCardNumber

setCreditCardNumber

public void setCreditCardNumber(java.lang.String pCreditCardNumber)
Parameters:
pCreditCardNumber - the creditCardNumber to set

getCreditCardExpirationMonth

public java.lang.String getCreditCardExpirationMonth()
Returns:
the creditCardExpirationMonth

setCreditCardExpirationMonth

public void setCreditCardExpirationMonth(java.lang.String pCreditCardExpirationMonth)
Parameters:
pCreditCardExpirationMonth - the creditCardExpirationMonth to set

getCreditCardExpirationYear

public java.lang.String getCreditCardExpirationYear()
Returns:
the creditCardExpirationYear

setCreditCardExpirationYear

public void setCreditCardExpirationYear(java.lang.String pCreditCardExpirationYear)
Parameters:
pCreditCardExpirationYear - the creditCardExpirationYear to set

getCreditCardBillingAddress

public atg.core.util.ContactInfo getCreditCardBillingAddress()
Returns:
the creditCardBillingAddress

setCreditCardBillingAddress

public void setCreditCardBillingAddress(atg.core.util.ContactInfo pCreditCardBillingAddress)
Parameters:
pCreditCardBillingAddress - the creditCardBillingAddress to set

getMoveToConfirmErrorURL

public java.lang.String getMoveToConfirmErrorURL()
Returns:
move to confirm error redirect URL.

setMoveToConfirmErrorURL

public void setMoveToConfirmErrorURL(java.lang.String pMoveToConfirmErrorURL)
Parameters:
pMoveToConfirmErrorURL - - move to confirm error redirect URL.

getMoveToConfirmSuccessURL

public java.lang.String getMoveToConfirmSuccessURL()
Returns:
move to confirm error redirect URL.

setMoveToConfirmSuccessURL

public void setMoveToConfirmSuccessURL(java.lang.String pMoveToConfirmSuccessURL)
Parameters:
pMoveToConfirmSuccessURL - - move to confirm success redirect URL.

getStoreConfiguration

public StoreConfiguration getStoreConfiguration()
Returns:
the store configuration.

setStoreConfiguration

public void setStoreConfiguration(StoreConfiguration pStoreConfiguration)
Parameters:
pStoreConfiguration - - the store configuration to set.

getCatalogTools

public atg.commerce.catalog.CatalogTools getCatalogTools()
Returns:
catalog tools.

setCatalogTools

public void setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
Parameters:
pCatalogTools - - catalog tools.

isUsingProfileCreditCard

public boolean isUsingProfileCreditCard()
Returns:
Is the credit card saved in the user's profile.

setUsingProfileCreditCard

public void setUsingProfileCreditCard(boolean pUsingProfileCreditCard)
Parameters:
pUsingProfileCreditCard - - is the credit card saved in the user's profile.

isUsingSavedAddress

public boolean isUsingSavedAddress()
Returns:
Is the address saved in the user's profile.

setUsingSavedAddress

public void setUsingSavedAddress(boolean pUsingSavedAddress)
Parameters:
pUsingSavedAddress - - Is the address saved in the user's profile.

isSaveBillingAddress

public boolean isSaveBillingAddress()
Returns:
true if billing address should be saved, otherwise false.

setSaveBillingAddress

public void setSaveBillingAddress(boolean pSaveBillingAddress)
Parameters:
pSaveBillingAddress - - true if billing address should be saved, otherwise false.

isUsingStoreCredit

public boolean isUsingStoreCredit()
Returns:
Is order covered with store credit only.

setUsingStoreCredit

public void setUsingStoreCredit(boolean pUsingStoreCredit)
Parameters:
pUsingStoreCredit - - Is order covered with store credit only.

getCreditCardTools

public atg.payment.creditcard.ExtendableCreditCardTools getCreditCardTools()
Returns:
ExtendableCreditCardTools

setCreditCardTools

public void setCreditCardTools(atg.payment.creditcard.ExtendableCreditCardTools pCreditCardTools)
Parameters:
pCreditCardTools - new ExtendableCreditCardTools

preSetupStoreCreditPaymentGroupsForOrder

public void preSetupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                     atg.servlet.DynamoHttpServletResponse pResponse)
                                              throws javax.servlet.ServletException,
                                                     java.io.IOException
This method to perform any pre-initialization of StoreCredit Payment group for the order if store credit is used.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

setupStoreCreditPaymentGroupsForOrder

public void setupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                  atg.servlet.DynamoHttpServletResponse pResponse)
                                           throws javax.servlet.ServletException,
                                                  java.io.IOException
This method initialize and setup StoreCredit Payment group for the order if store credit is used.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postSetupStoreCreditPaymentGroupsForOrder

public void postSetupStoreCreditPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                      atg.servlet.DynamoHttpServletResponse pResponse)
                                               throws javax.servlet.ServletException,
                                                      java.io.IOException
This method is post setup of store credit payment groups.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

preAddCreditCardBillingAddress

public void preAddCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
                                           atg.servlet.DynamoHttpServletResponse pResponse)
                                    throws javax.servlet.ServletException,
                                           java.io.IOException
This method performs any operations required before the billing address is added to the credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

addCreditCardBillingAddress

public void addCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
                                        atg.servlet.DynamoHttpServletResponse pResponse)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
This method add and validates the billing Address to the credit card if order payment is payed by the credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postAddCreditCardBillingAddress

public void postAddCreditCardBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
                                            atg.servlet.DynamoHttpServletResponse pResponse)
                                     throws javax.servlet.ServletException,
                                            java.io.IOException
Carry out any operations required after a billing address is added to a credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

preAddCreditCardAuthorizationNumber

public void preAddCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest,
                                                atg.servlet.DynamoHttpServletResponse pResponse)
                                         throws javax.servlet.ServletException,
                                                java.io.IOException
This method performs any operations required before the credit card authorization number is added.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

addCreditCardAuthorizationNumber

public void addCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest,
                                             atg.servlet.DynamoHttpServletResponse pResponse)
                                      throws javax.servlet.ServletException,
                                             java.io.IOException
This method add and validates the credit card authorization number the credit card if order payment is payed by the credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postAddCreditCardAuthorizationNumber

public void postAddCreditCardAuthorizationNumber(atg.servlet.DynamoHttpServletRequest pRequest,
                                                 atg.servlet.DynamoHttpServletResponse pResponse)
                                          throws javax.servlet.ServletException,
                                                 java.io.IOException
Carry out any operations required after a credit card authorization number is added.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

preSetupCreditCardPaymentGroupsForOrder

public void preSetupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                    atg.servlet.DynamoHttpServletResponse pResponse)
                                             throws javax.servlet.ServletException,
                                                    java.io.IOException,
                                                    atg.commerce.CommerceException
This method performs any pre-initialization needed to setup the Credit Card Payment group for the order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

setupCreditCardPaymentGroupsForOrder

public void setupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                 atg.servlet.DynamoHttpServletResponse pResponse)
                                          throws javax.servlet.ServletException,
                                                 java.io.IOException
This method initialize and setup Credit Card Payment group for the order, if store credit is used, then all amount from the order deducted by the store credit, then by credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postSetupCreditCardPaymentGroupsForOrder

public void postSetupCreditCardPaymentGroupsForOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                                     atg.servlet.DynamoHttpServletResponse pResponse)
                                              throws javax.servlet.ServletException,
                                                     java.io.IOException
Update checkout states with CONFIRM level.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

preAddCreditCardToProfile

public void preAddCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest,
                                      atg.servlet.DynamoHttpServletResponse pResponse)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
This method is for any processing required after billing info is entered. It will register the user if the user is required to register, and save the credit card to the profile if the user chose that option.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

addCreditCardToProfile

public void addCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest,
                                   atg.servlet.DynamoHttpServletResponse pResponse)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
This method is for any processing required after billing info is entered. It will register the user if the user is required to register, and save the credit card to the profile if the user chose that option.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postAddCreditCardToProfile

public void postAddCreditCardToProfile(atg.servlet.DynamoHttpServletRequest pRequest,
                                       atg.servlet.DynamoHttpServletResponse pResponse)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
This method is for any processing required after billing info is entered. It will register the user if the user is required to register, and save the credit card to the profile if the user chose that option.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

runProcessMoveToConfirmation

public void runProcessMoveToConfirmation(atg.servlet.DynamoHttpServletRequest pRequest,
                                         atg.servlet.DynamoHttpServletResponse pResponse)
                                  throws atg.service.pipeline.RunProcessException,
                                         javax.servlet.ServletException,
                                         java.io.IOException
Run the 'moveToConfirmation' pipeline.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.service.pipeline.RunProcessException - if error running pipeline process.

validateCreditCardInput

public boolean validateCreditCardInput(atg.servlet.DynamoHttpServletRequest pRequest,
                                       atg.servlet.DynamoHttpServletResponse pResponse)
                                throws atg.commerce.CommerceException,
                                       java.io.IOException,
                                       javax.servlet.ServletException
This method uses the CreditCardTools to validate the credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
true if success, otherwise false.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException - indicates that a severe error occurred while performing a commerce operation.
See Also:
ExtendableCreditCardTools

validateCreditCardNicknameInput

public boolean validateCreditCardNicknameInput(atg.servlet.DynamoHttpServletRequest pRequest,
                                               atg.servlet.DynamoHttpServletResponse pResponse)
                                        throws javax.servlet.ServletException,
                                               java.io.IOException
This method validates the credit card nickname if one is required.

Parameters:
pRequest - - HTTP request.
pResponse - - HTTP response.
Returns:
true if success, otherwise false.
Throws:
java.io.IOException
javax.servlet.ServletException

getCreditCard

public atg.commerce.order.CreditCard getCreditCard()
Utility method to fetch credit card and set properties from page.

Returns:
credit card for this order

validateCreditCardAuthorizationNumber

protected void validateCreditCardAuthorizationNumber(java.lang.String pAuthNumber,
                                                     atg.servlet.DynamoHttpServletRequest pRequest,
                                                     atg.servlet.DynamoHttpServletResponse pResponse)
                                              throws javax.servlet.ServletException,
                                                     java.io.IOException
Verifies that the auth number is valued and a number.

Parameters:
pAuthNumber - - authentication number.
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

validateBillingAddress

protected boolean validateBillingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
                                         atg.servlet.DynamoHttpServletResponse pResponse)
Validates the billing address, Not Validate, if Order Amount is not payed by Credit Card.

Parameters:
pRequest - - HTTP request
pResponse - - HTTP response
Returns:
true if billing address is missing, otherwise false.

handleBillingWithSavedCard

public boolean handleBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                          atg.servlet.DynamoHttpServletResponse pResponse)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException,
                                          atg.commerce.CommerceException
Move to confirmation using saved credit card.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
a boolean value
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

preBillingWithSavedCard

protected void preBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                       atg.servlet.DynamoHttpServletResponse pResponse)
                                throws atg.commerce.CommerceException,
                                       java.io.IOException,
                                       javax.servlet.ServletException
Setup credit card payment group for billing with saved card and validate credit card input.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

billingWithSavedCard

protected void billingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                    atg.servlet.DynamoHttpServletResponse pResponse)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
Run 'move to confirmation' pipeline chain and update order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postBillingWithSavedCard

protected void postBillingWithSavedCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                        atg.servlet.DynamoHttpServletResponse pResponse)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
Save billing address as default if user doesn't have one, update checkout level.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

handleBillingWithNewAddressAndNewCard

public boolean handleBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                     atg.servlet.DynamoHttpServletResponse pResponse)
                                              throws javax.servlet.ServletException,
                                                     java.io.IOException,
                                                     atg.commerce.CommerceException
Move to confirmation using new billing address and new credit card info.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
a boolean value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

preBillingWithNewAddressAndNewCard

protected void preBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                  atg.servlet.DynamoHttpServletResponse pResponse)
                                           throws javax.servlet.ServletException,
                                                  java.io.IOException,
                                                  atg.commerce.CommerceException
Setup credit card payment group and validate user input.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

billingWithNewAddressAndNewCard

protected void billingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                               atg.servlet.DynamoHttpServletResponse pResponse)
                                        throws javax.servlet.ServletException,
                                               java.io.IOException
Run 'move to confirmation' pipeline chain and update order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postBillingWithNewAddressAndNewCard

protected void postBillingWithNewAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                   atg.servlet.DynamoHttpServletResponse pResponse)
                                            throws javax.servlet.ServletException,
                                                   java.io.IOException
Add credit card to user profile, update checkout level.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

handleBillingWithSavedAddressAndNewCard

public boolean handleBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                       atg.servlet.DynamoHttpServletResponse pResponse)
                                                throws javax.servlet.ServletException,
                                                       java.io.IOException,
                                                       atg.commerce.CommerceException
Move to confirmation using saved billing address and new credit card info.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
a boolean value
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

preBillingWithSavedAddressAndNewCard

protected void preBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                    atg.servlet.DynamoHttpServletResponse pResponse)
                                             throws javax.servlet.ServletException,
                                                    java.io.IOException,
                                                    atg.commerce.CommerceException
Setup credit card payment and validate user input.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

billingWithSavedAddressAndNewCard

protected void billingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                 atg.servlet.DynamoHttpServletResponse pResponse)
                                          throws javax.servlet.ServletException,
                                                 java.io.IOException
Run 'move to confirm' pipeline chain and update order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postBillingWithSavedAddressAndNewCard

protected void postBillingWithSavedAddressAndNewCard(atg.servlet.DynamoHttpServletRequest pRequest,
                                                     atg.servlet.DynamoHttpServletResponse pResponse)
                                              throws javax.servlet.ServletException,
                                                     java.io.IOException
Add newly created card to profile, update checkout progress level.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

handleBillingWithStoreCredit

public boolean handleBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest,
                                            atg.servlet.DynamoHttpServletResponse pResponse)
                                     throws javax.servlet.ServletException,
                                            java.io.IOException,
                                            atg.commerce.CommerceException
Move to confirmation using only store credit as payment method.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
a boolean value
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.
atg.commerce.CommerceException

preBillingWithStoreCredit

protected void preBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest,
                                         atg.servlet.DynamoHttpServletResponse pResponse)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
Tender coupon before billing with store credit occurs.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

postBillingWithStoreCredit

protected void postBillingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest,
                                          atg.servlet.DynamoHttpServletResponse pResponse)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
Update checkout progress level.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

billingWithStoreCredit

protected void billingWithStoreCredit(atg.servlet.DynamoHttpServletRequest pRequest,
                                      atg.servlet.DynamoHttpServletResponse pResponse)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
Run 'move to confirmation' pipeline chain and update order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

handleApplyStoreCreditsToOrder

public boolean handleApplyStoreCreditsToOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                              atg.servlet.DynamoHttpServletResponse pResponse)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
Apply available store credits to order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
true on success, otherwise false.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

moveToConfirmExceptionHandling

public boolean moveToConfirmExceptionHandling(atg.servlet.DynamoHttpServletRequest pRequest,
                                              atg.servlet.DynamoHttpServletResponse pResponse)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
Deal with error in move to confirm operation.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Returns:
If redirect (for whatever reason) to a new page occurred, return false. If NO redirect occurred, return true.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

processOrderBilling

protected void processOrderBilling(atg.servlet.DynamoHttpServletRequest pRequest,
                                   atg.servlet.DynamoHttpServletResponse pResponse)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
Run pipeline chain responsible for order billing and update (save) order.

Parameters:
pRequest - a DynamoHttpServletRequest value.
pResponse - a DynamoHttpServletResponse value.
Throws:
javax.servlet.ServletException - if an error occurs.
java.io.IOException - if an error occurs.

updateCheckoutProgressState

protected void updateCheckoutProgressState()
If no errors, update checkout progress state with CONFIRM level. This is needed to display confirmation page.


addAddressValidationFormError

public void addAddressValidationFormError(java.util.List pMissingProperties,
                                          atg.servlet.DynamoHttpServletRequest pRequest,
                                          atg.servlet.DynamoHttpServletResponse pResponse)
Utility method to add form exception.

Parameters:
pMissingProperties - - missing properties list
pRequest - - HTTP request
pResponse - - HTTP response

initializeCreditCardSelection

public void initializeCreditCardSelection()
Sets initial values to storedCreditCardName and usingProfileCreditCard fields based on the order


initializeBillingAddressSelection

public void initializeBillingAddressSelection()
Sets initial values to storedAddressSelection and usingSavedAddress fields based on the order