mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
clear authorization url after failing the payment
This commit is contained in:
@@ -42,6 +42,7 @@ class ProcessPaymentIntent
|
||||
Result.new(ok: true)
|
||||
else
|
||||
payment.failed_authorization
|
||||
payment.clear_authorization_url
|
||||
Result.new(ok: false, error: I18n.t("payment_could_not_complete"))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user