mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Restore payment error feedback
This commit is contained in:
@@ -68,6 +68,9 @@ class CheckoutController < Spree::CheckoutController
|
||||
render json: { path: order_path(@order) }, status: :ok
|
||||
end
|
||||
end
|
||||
rescue Spree::Core::GatewayError => error
|
||||
# This is done for all actions in the Spree::CheckoutController.
|
||||
rescue_from_spree_gateway_error(error)
|
||||
rescue StandardError => error
|
||||
Bugsnag.notify(error)
|
||||
flash[:error] = I18n.t("checkout.failed")
|
||||
|
||||
Reference in New Issue
Block a user