@Deprecated @Controller(value="blAuthorizeNetController") @RequestMapping(value="/authorizenet") public class BroadleafAuthorizeNetController extends org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeNetCheckoutService |
authorizeNetCheckoutService
Deprecated.
|
protected AuthorizeNetConfiguration |
configuration
Deprecated.
|
protected static String |
GATEWAY_CONTEXT_KEY
Deprecated.
|
protected static org.apache.commons.logging.Log |
LOG
Deprecated.
|
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService |
paymentGatewayWebResponseService
Deprecated.
|
protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionService |
transactionService
Deprecated.
|
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponsePrintService |
webResponsePrintService
Deprecated.
|
baseCartRedirect, baseConfirmationRedirect, baseErrorView, baseOrderReviewRedirect, baseRedirect, cartReqAttributeNotProvidedMessage, PAYMENT_PROCESSING_ERROR, paymentGatewayCheckoutService, processingErrorMessage| Constructor and Description |
|---|
BroadleafAuthorizeNetController()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
errorEndpoint(org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
Map<String,String> pathVars)
Deprecated.
|
org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration |
getConfiguration()
Deprecated.
|
String |
getGatewayContextKey()
Deprecated.
|
org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService |
getWebResponseService()
Deprecated.
|
void |
handleProcessingException(Exception e,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Deprecated.
|
void |
handleUnsuccessfulTransaction(org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
Deprecated.
|
String |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
org.springframework.ui.Model model)
Deprecated.
Invoked by Authorize.net after taking the user's credit card.
|
protected String |
requestParamToString(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected org.broadleafcommerce.common.payment.dto.PaymentRequestDTO |
responseToVoidRequest(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO response)
Deprecated.
Builds a request with enough information to void the given response from the gateway
|
String |
returnEndpoint(org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
Map<String,String> pathVars)
Deprecated.
|
applyPaymentToOrder, getBaseConfirmationRedirect, getCartReqAttributeNotProvidedMessage, getCartViewRedirect, getConfirmationViewRedirect, getErrorViewRedirect, getOrderReviewRedirect, getProcessingErrorMessage, initiateCheckout, lookupOrderNumberFromOrderId, processprotected static final org.apache.commons.logging.Log LOG
protected static final String GATEWAY_CONTEXT_KEY
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService paymentGatewayWebResponseService
protected AuthorizeNetCheckoutService authorizeNetCheckoutService
protected AuthorizeNetConfiguration configuration
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponsePrintService webResponsePrintService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionService transactionService
public BroadleafAuthorizeNetController()
public String getGatewayContextKey()
getGatewayContextKey in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerpublic void handleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
handleProcessingException in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void handleUnsuccessfulTransaction(org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
handleUnsuccessfulTransaction in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService getWebResponseService()
getWebResponseService in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerpublic org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()
getConfiguration in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController@RequestMapping(value="/error",
method=GET)
public String errorEndpoint(org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
Map<String,String> pathVars)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
errorEndpoint in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerorg.broadleafcommerce.common.vendor.service.exception.PaymentException@RequestMapping(value="/return",
method=GET)
public String returnEndpoint(org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
@PathVariable
Map<String,String> pathVars)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
returnEndpoint in class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractControllerorg.broadleafcommerce.common.vendor.service.exception.PaymentException@RequestMapping(value="/process",
method=POST)
@ResponseBody
public String process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
org.springframework.ui.Model model)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
Invoked by Authorize.net after taking the user's credit card. This should process the payment and add it to the order as well as check out the order if configured.
At this point in the lifecyle of taking payment, the card has already been charged. If there is a problem checking out the order, we need to communicate that explicitly up to Authorize.net via a VOID transaction. Otherwise, the user will be left with a non-submitted Order but their card will still be charged.
request - response - model - org.broadleafcommerce.common.vendor.service.exception.PaymentExceptionprotected org.broadleafcommerce.common.payment.dto.PaymentRequestDTO responseToVoidRequest(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO response)
response - protected String requestParamToString(javax.servlet.http.HttpServletRequest request)
Copyright © 2023. All rights reserved.