Class StripeDeposit

java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.PostRoute
io.github.sigmacasino.routes.account.StripeDeposit
All Implemented Interfaces:
spark.Route

public class StripeDeposit extends PostRoute
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 Details

    • priceIdentifier

      private String priceIdentifier
  • Constructor Details

    • StripeDeposit

      public StripeDeposit(App app)
  • Method Details

    • handlePost

      public void handlePost(spark.Request request, spark.Response response) throws SQLException
      Initiates a Stripe purchase session and redirects the user to the Stripe Checkout page.
      Specified by:
      handlePost in class PostRoute
      Parameters:
      request - The HTTP request.
      response - The HTTP response.
      Throws:
      SQLException
      See Also:
      • SessionCreateParams