app/controllers/stripe_controller.rb
# TODO: This has mostly been taken from stripe documentation and it's not very robust right now.
# Rewrite this with strong params etc
# And move it to Background jobs
This has mostly been taken from stripe documentation and it's not very robust right now.
Rewrite this with strong params etc
And move it to Background jobs
This has mostly been taken from stripe documentation and it ' s not very robust right now . Rewrite this with strong params etc And move it to Background jobs
def checkout_session
    session_id = params[:sessionId]
    session = Stripe::Checkout::Session.retrieve(session_id)
    render json: session
  end
def checkout_session session_id = params [ :sessionId ] session = Stripe :: Checkout :: Session . retrieve ( session_id ) render json : session end
TODO: This has mostly been taken from stripe documentation and it's not very robust right now.
TODO : This has mostly been taken from stripe documentation and it ' s not very robust right now .