Class StripeResult

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

public class StripeResult extends GetRoute
A route that shows the result of a Stripe payment to the user.
  • Constructor Details

    • StripeResult

      public StripeResult(App app)
  • Method Details

    • handleGet

      public Object handleGet(spark.Request request, spark.Response response) throws SQLException
      Redirects the user to the account page with a success or error message. Temporary solution until we implement a proper payment result template.
      Specified by:
      handleGet in class GetRoute
      Parameters:
      request - The HTTP request.
      response - The HTTP response.
      Returns:
      A redirect message.
      Throws:
      SQLException - if a database access error occurs in any subclass implementation