You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stripe_accounts_controller.rb
    path of file: ./repos/convene/app/furniture/marketplace
    
    the code of the file until where you have to start completion: class Marketplace
  class StripeAccountsController < Controller
    def create
      authorize(marketplace, :edit?)
      stripe_account_link = marketplace.stripe_account_link(
        refresh_url: polymorphic_url(marketplace.location(:edit)),
        return_url: polymorphic_url(marketplace.location(:edit))
      )

      marketplace.create_stripe_webhook_endpoint(webhook_url:
    
    def create
      authorize(marketplace, :edit?)
      stripe_account_link = marketplace.stripe_account_link(
        refresh_url: polymorphic_url(marketplace.location(:edit)),
        return_url: polymorphic_url(marketplace.location(:edit))
      )

      marketplace.create_stripe_webhook_endpoint(webhook_url: polymorphic_url(marketplace.location(child: :stripe_events)))

      redirect_to stripe_account_link.url, status: :see_other, allow_other_host: true
    rescue Stripe::InvalidRequestError => e
      redirect_to marketplace.location(:edit), alert: "Something went wrong! #{e.message}"
    end