diff --git a/README.md b/README.md index b00019e..ae218c0 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ your order. ```ruby def payment - @order = Shoppe::Order.find(session[:current_order_id]) + @order = Shoppe::Order.find(current_order.id) if request.post? if @order.accept_stripe_token(params[:stripe_token]) redirect_to checkout_confirmation_path