@Service(value="blDefaultCreditCardExtensionHandler") public class DefaultCreditCardExtensionHandler extends AbstractExtensionHandler implements PaymentInfoServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected BillingInfoFormValidator |
billingInfoFormValidator |
protected PaymentInfoServiceExtensionManager |
extensionManager |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected PaymentInfoFactory |
paymentInfoFactory |
protected SecurePaymentInfoService |
securePaymentInfoService |
enabled, priority| Constructor and Description |
|---|
DefaultCreditCardExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
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 credit card PaymentInfo to the payments map and the order.
|
protected ExtensionResultStatusType |
addToPaymentsMap(Map<PaymentInfo,Referenced> payments,
BillingInfoForm billingForm,
org.springframework.validation.BindingResult result)
Adds a credit card PaymentInfo to the payments map and the order.
|
protected void |
copyShippingAddressToBillingAddress(Order order,
BillingInfoForm billingInfoForm)
This method will copy the shipping address of the first shippable fulfillment group on the order
to the billing address on the BillingInfoForm that is passed in.
|
void |
init() |
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledprotected PaymentInfoServiceExtensionManager extensionManager
protected PaymentInfoFactory paymentInfoFactory
protected SecurePaymentInfoService securePaymentInfoService
protected BillingInfoFormValidator billingInfoFormValidator
protected FulfillmentGroupService fulfillmentGroupService
@PostConstruct public void init()
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)
addAdditionalPaymentInfos in interface PaymentInfoServiceExtensionHandlerpayments - paymentInfoTypeList - - Checks this list to decide if credit card PaymentInfos should be added to the payments map.request - response - model - billingForm - result - protected ExtensionResultStatusType addToPaymentsMap(Map<PaymentInfo,Referenced> payments, BillingInfoForm billingForm, org.springframework.validation.BindingResult result)
payments - billingForm - result - protected void copyShippingAddressToBillingAddress(Order order, BillingInfoForm billingInfoForm)
billingInfoForm - Copyright © 2014. All Rights Reserved.