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: checkout.rb
    path of file: ./repos/convene/app/furniture/marketplace
    
    the code of the file until where you have to start completion: class Marketplace
  class Checkout < Model
    location(parent: :cart)
    include ActiveModel::Validations
    attr_accessor :cart
    delegate :shopper, :delive
    
    def create_stripe_session(success_url:, cancel_url:)
      Stripe::Checkout::Session.create({
        line_items: stripe_line_items,
        mode: "payment",
        success_url: success_url,
        cancel_url: cancel_url,
        customer_email: cart.contact_email,
        payment_intent_data: {
          transfer_group: cart.id
        }
      }, {
        api_key: marketplace.stripe_api_key
      }).tap do |checkout_session|
        cart.events.create(description: "Entered Checkout")
      end
    end