clear authorization url after failing the payment

This commit is contained in:
Andy Brett
2021-06-13 17:41:49 -07:00
parent d3cca04703
commit dd0375aed4

View File

@@ -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