Class SamplePaymentGatewayHostedController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
org.broadleafcommerce.vendor.sample.web.controller.SamplePaymentGatewayHostedController
@Controller("blSamplePaymentGatewayHostedController")
@RequestMapping("/sample-checkout")
public class SamplePaymentGatewayHostedController
extends org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final org.apache.commons.logging.Logprotected org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationprotected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseServiceFields inherited from class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
baseCartRedirect, baseConfirmationRedirect, baseErrorView, baseOrderReviewRedirect, baseRedirect, cartReqAttributeNotProvidedMessage, PAYMENT_PROCESSING_ERROR, paymentGatewayCheckoutService, processingErrorMessage, webResponsePrintService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationorg.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseServicevoidhandleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) voidhandleUnsuccessfulTransaction(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) returnEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) Methods inherited from class org.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
applyPaymentToOrder, getBaseConfirmationRedirect, getCartReqAttributeNotProvidedMessage, getCartViewRedirect, getConfirmationViewRedirect, getErrorViewRedirect, getOrderReviewRedirect, getProcessingErrorMessage, initiateCheckout, lookupOrderNumberFromOrderId, processMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
GATEWAY_CONTEXT_KEY
- See Also:
-
paymentGatewayWebResponseService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService paymentGatewayWebResponseService -
paymentGatewayConfiguration
protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration paymentGatewayConfiguration
-
-
Constructor Details
-
SamplePaymentGatewayHostedController
public SamplePaymentGatewayHostedController()
-
-
Method Details
-
handleProcessingException
public void handleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
handleProcessingExceptionin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
handleUnsuccessfulTransaction
public 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 - Specified by:
handleUnsuccessfulTransactionin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getGatewayContextKey
- Specified by:
getGatewayContextKeyin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
-
getWebResponseService
public org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService getWebResponseService()- Specified by:
getWebResponseServicein classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
-
getConfiguration
public org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()- Specified by:
getConfigurationin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController
-
returnEndpoint
@RequestMapping(value="/hosted/return", method=GET) public String returnEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Specified by:
returnEndpointin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
errorEndpoint
@RequestMapping(value="/hosted/error", method=GET) public String errorEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Specified by:
errorEndpointin classorg.broadleafcommerce.common.web.payment.controller.PaymentGatewayAbstractController- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-