mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Skip Stripe logic when no payment data is passed
This commit is contained in:
@@ -26,8 +26,11 @@ module Spree
|
||||
|
||||
def show
|
||||
@order = Spree::Order.find_by!(number: params[:id])
|
||||
ProcessPaymentIntent.new(params["payment_intent"], @order).call!
|
||||
@order.reload
|
||||
|
||||
if params.key?("payment_intent")
|
||||
ProcessPaymentIntent.new(params["payment_intent"], @order).call!
|
||||
@order.reload
|
||||
end
|
||||
end
|
||||
|
||||
def empty
|
||||
|
||||
Reference in New Issue
Block a user