Klasse PaymentHandler

java.lang.Object
de.bytestore.hostinger.handler.PaymentHandler

@Transactional public class PaymentHandler extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected static final org.slf4j.Logger
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static boolean
    authorize(jakarta.servlet.http.HttpServletRequest requestIO, jakarta.servlet.http.HttpServletResponse responseIO, String providerIO)
    Authorizes a payment request with the specified provider.
    static Payment
    createPayment(Invoices invoiceIO, String providerIO)
    Creates a payment based on the given invoice.
    static List<Payment>
    Retrieves a list of Payment objects based on the specified token.
    Retrieves a list of PaymentExtensionPoint objects from the ModulesHandler.
    static Payment
    Refreshes a payment by querying all available payment extension points for an updated payment object.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • log

      protected static final org.slf4j.Logger log
  • Konstruktordetails

    • PaymentHandler

      public PaymentHandler()
  • Methodendetails

    • createPayment

      public static Payment createPayment(Invoices invoiceIO, String providerIO)
      Creates a payment based on the given invoice.
      Parameter:
      invoiceIO - the invoice for which the payment needs to be created
      providerIO -
      Gibt zurück:
      the created payment object
    • authorize

      public static boolean authorize(jakarta.servlet.http.HttpServletRequest requestIO, jakarta.servlet.http.HttpServletResponse responseIO, String providerIO) throws Exception
      Authorizes a payment request with the specified provider.
      Parameter:
      requestIO - the HTTP servlet request object
      responseIO - the HTTP servlet response object
      providerIO - the name of the payment provider
      Löst aus:
      Exception - if an error occurs during authorization
    • refreshPayment

      public static Payment refreshPayment(Payment paymentIO)
      Refreshes a payment by querying all available payment extension points for an updated payment object.
      Parameter:
      paymentIO - the payment object to be refreshed
      Gibt zurück:
      the refreshed payment object
    • getPayment

      public static List<Payment> getPayment(String idIO)
      Retrieves a list of Payment objects based on the specified token.
      Parameter:
      idIO - the token used to filter the payments
      Gibt zurück:
      a list of Payment objects that match the given token
    • list

      public static List<PaymentExtensionPoint> list()
      Retrieves a list of PaymentExtensionPoint objects from the ModulesHandler.
      Gibt zurück:
      A List of PaymentExtensionPoint objects.