jaroslavhorak PRO said about 1 year ago on Embedding Stripe Checkout :
Hi,
shouldn't be in checkouts_controller.rb
Order.create(session_id: @session.id, stripe_checkout_id: @session.id)
instead of
Order.create(session_id: session.id, stripe_checkout_id: @session.id)

David Kimura PRO said about 1 year ago on Embedding Stripe Checkout :
  jaroslavhorak I'm using the browser session instead of current_user so the session could be replaced with user

Order.create(session_id: session.id, ...)
Order.create(user: current_user, ...)

Sorry for the confusion.

Login to Comment