Class HostedPaymentServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.avoka.fc.core.servlet.BaseServlet
com.avoka.fc.core.servlet.payment.HostedPaymentServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
HostedPaymentCallback, HostedPaymentCancel, HostedPaymentError, HostedPaymentResponse

public class HostedPaymentServlet extends BaseServlet
Provides a servlet that handles payment responses from a hosted payment service.
Since:
4.0.0
See Also:
  • Constructor Details

    • HostedPaymentServlet

      public HostedPaymentServlet()
  • Method Details

    • getErrorLogService

      protected ErrorLogService getErrorLogService()
      Specified by:
      getErrorLogService in class BaseServlet
      Returns:
      the servlet error log service
    • executeRequest

      protected void executeRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
      Handles a payment callback from a hosted payment gateway. This servlet uses the payment log key or submit key as preference to identify the payment log that is to be updated. If the paymentLogKey or submitKey is not provided then it is assumed that the parameters are encrypted. In this case the URL path is expected to contain the organisation name where the associated payment gateway will be used to identify the payment log to be updated.
      Specified by:
      executeRequest in class BaseServlet
      Parameters:
      req - the HttpServletRequest
      resp - the HttpServletResponse
    • getCallbackType

      protected HostedPaymentServlet.CALLBACK_TYPE getCallbackType(jakarta.servlet.http.HttpServletRequest req)