Class StripeDeposit
java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.PostRoute
io.github.sigmacasino.routes.account.StripeDeposit
- All Implemented Interfaces:
spark.Route
A post route which initiates a Stripe payment session.
It redirects the user to the Stripe Checkout page via the official API.
- See Also:
-
Field Summary
FieldsFields inherited from class io.github.sigmacasino.HTTPRoute
app, loginRequired, path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePost
(spark.Request request, spark.Response response) Initiates a Stripe purchase session and redirects the user to the Stripe Checkout page.Methods inherited from class io.github.sigmacasino.PostRoute
handle, parseBodyParams, registerSparkRoute
-
Field Details
-
priceIdentifier
-
-
Constructor Details
-
StripeDeposit
-
-
Method Details
-
handlePost
Initiates a Stripe purchase session and redirects the user to the Stripe Checkout page.- Specified by:
handlePost
in classPostRoute
- Parameters:
request
- The HTTP request.response
- The HTTP response.- Throws:
SQLException
- See Also:
-
SessionCreateParams
-