Package de.bytestore.hostinger.handler
Klasse PaymentHandler
java.lang.Object
de.bytestore.hostinger.handler.PaymentHandler
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.getPayment
(String idIO) Retrieves a list of Payment objects based on the specified token.static List<PaymentExtensionPoint>
list()
Retrieves a list of PaymentExtensionPoint objects from the ModulesHandler.static Payment
refreshPayment
(Payment paymentIO) Refreshes a payment by querying all available payment extension points for an updated payment object.
-
Felddetails
-
log
protected static final org.slf4j.Logger log
-
-
Konstruktordetails
-
PaymentHandler
public PaymentHandler()
-
-
Methodendetails
-
createPayment
Creates a payment based on the given invoice.- Parameter:
invoiceIO
- the invoice for which the payment needs to be createdproviderIO
-- 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 objectresponseIO
- the HTTP servlet response objectproviderIO
- the name of the payment provider- Löst aus:
Exception
- if an error occurs during authorization
-
refreshPayment
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
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
Retrieves a list of PaymentExtensionPoint objects from the ModulesHandler.- Gibt zurück:
- A List of PaymentExtensionPoint objects.
-