org.broadleafcommerce.core.web.controller.checkout
Class DefaultCODExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.web.controller.checkout.DefaultCODExtensionHandler
- All Implemented Interfaces:
- ExtensionHandler, PaymentInfoServiceExtensionHandler
@Service(value="blDefaultCODExtensionHandler")
public class DefaultCODExtensionHandler
- extends AbstractExtensionHandler
- implements PaymentInfoServiceExtensionHandler
Extension handler to add a Collect On Delivery(COD) PaymentInfo to the payments map and to the order
- Author:
- Joshua Skorton (jskorton)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extensionManager
protected PaymentInfoServiceExtensionManager extensionManager
codPaymentInfoFactory
protected CODPaymentInfoFactoryImpl codPaymentInfoFactory
DefaultCODExtensionHandler
public DefaultCODExtensionHandler()
init
@PostConstruct
public void init()
addAdditionalPaymentInfos
public ExtensionResultStatusType addAdditionalPaymentInfos(Map<PaymentInfo,Referenced> payments,
List<PaymentInfoType> paymentInfoTypeList,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
BillingInfoForm billingForm,
org.springframework.validation.BindingResult result)
- Adds a COD PaymentInfo to the payments map and the order. The paymentInfoTypeList is checked to confirm
that the COD PaymentInfo should be added.
- Specified by:
addAdditionalPaymentInfos in interface PaymentInfoServiceExtensionHandler
- Parameters:
payments - paymentInfoTypeList - - Checks this list to decide if COD PaymentInfos should be added to the payments map.request - response - model - billingForm - result -
- Returns:
addToPaymentsMap
protected ExtensionResultStatusType addToPaymentsMap(Map<PaymentInfo,Referenced> payments)
- Adds a COD PaymentInfo to the payments map and the order.
- Parameters:
payments -
- Returns:
Copyright © 2013. All Rights Reserved.