reload order's new state after processing payment

This commit is contained in:
Andy Brett
2021-02-12 13:36:17 -08:00
parent cd2b4d2fb2
commit c851705d5a

View File

@@ -27,6 +27,7 @@ module Spree
def show
@order = Spree::Order.find_by!(number: params[:id])
ProcessPaymentIntent.new(params["payment_intent"], @order).call!
@order.reload
end
def empty