org.broadleafcommerce.vendor.authorizenet.web.controller
Class BroadleafAuthorizeNetController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
          extended by org.broadleafcommerce.core.web.controller.checkout.BroadleafCheckoutController
              extended by org.broadleafcommerce.vendor.authorizenet.web.controller.BroadleafAuthorizeNetController

public class BroadleafAuthorizeNetController
extends org.broadleafcommerce.core.web.controller.checkout.BroadleafCheckoutController

Author:
elbertbautista

Field Summary
protected  AuthorizeNetCheckoutService authorizeNetCheckoutService
           
protected  String authorizeNetConfirmUrl
           
protected  String authorizeNetErrorUrl
           
 
Fields inherited from class org.broadleafcommerce.core.web.controller.checkout.BroadleafCheckoutController
baseConfirmationView, cartPageRedirect, checkoutPageRedirect, checkoutView, multishipAddAddressSuccessView, multishipAddAddressView, multishipSuccessView, multishipView
 
Fields inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
addressService, billingInfoFormValidator, checkoutService, countryService, creditCardPaymentInfoFactory, customerAddressService, customerService, fulfillmentGroupService, fulfillmentOptionService, fulfillmentPricingService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderService, securePaymentInfoService, shippingInfoFormValidator, stateService
 
Constructor Summary
BroadleafAuthorizeNetController()
           
 
Method Summary
 String checkout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
           
 String processAuthorizeNetAuthorizeAndDebit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 
Methods inherited from class org.broadleafcommerce.core.web.controller.checkout.BroadleafCheckoutController
completeCheckout, completeSecureCreditCardCheckout, convertToSingleship, copyShippingAddressToBillingAddress, getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutView, getConfirmationView, getMultishipAddAddressSuccessView, getMultishipAddAddressView, getMultishipSuccessView, getMultishipView, hasValidOrderInfo, hasValidShippingAddresses, initBinder, initializeOrderForCheckout, populateExpirationMonths, populateExpirationYears, populateModelWithShippingReferenceData, processFailedOrderCheckout, putFulfillmentOptionsAndEstimationOnModel, saveGlobalOrderDetails, saveMultiship, saveMultishipAddAddress, saveMultiShipInstruction, savePaymentForm, saveSingleShip, showMultiship, showMultishipAddAddress
 
Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
isAjaxRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authorizeNetCheckoutService

protected AuthorizeNetCheckoutService authorizeNetCheckoutService

authorizeNetErrorUrl

@Value(value="${authorizenet.error.url}")
protected String authorizeNetErrorUrl

authorizeNetConfirmUrl

@Value(value="${authorizenet.confirm.url}")
protected String authorizeNetConfirmUrl
Constructor Detail

BroadleafAuthorizeNetController

public BroadleafAuthorizeNetController()
Method Detail

checkout

public String checkout(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       org.springframework.ui.Model model,
                       org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Overrides:
checkout in class org.broadleafcommerce.core.web.controller.checkout.BroadleafCheckoutController

processAuthorizeNetAuthorizeAndDebit

@ResponseBody
public String processAuthorizeNetAuthorizeAndDebit(javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response,
                                                                org.springframework.ui.Model model)
                                            throws NoSuchAlgorithmException,
                                                   org.broadleafcommerce.core.pricing.service.exception.PricingException,
                                                   InvalidKeyException,
                                                   UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
org.broadleafcommerce.core.pricing.service.exception.PricingException
InvalidKeyException
UnsupportedEncodingException


Copyright © 2012. All Rights Reserved.