jaroslavhorak PRO said 7 months 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 7 months 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