From 6fc0e7ba920a5a0126f40ce20cd0988ef5d3238c Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 26 Nov 2021 11:53:23 +0200 Subject: [PATCH] Use payment error --- lib/plausible_web/controllers/billing_controller.ex | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/plausible_web/controllers/billing_controller.ex b/lib/plausible_web/controllers/billing_controller.ex index 7b81f276f..a057678b1 100644 --- a/lib/plausible_web/controllers/billing_controller.ex +++ b/lib/plausible_web/controllers/billing_controller.ex @@ -153,7 +153,7 @@ defmodule PlausibleWeb.BillingController do msg = case e do %{"code" => 147} -> - "We were unable to charge your card. Make sure your payment details are up to date and try again." + "We were unable to charge your card. Click 'update billing info' to update your payment details and try again." %{"message" => msg} when not is_nil(msg) -> msg @@ -172,10 +172,7 @@ defmodule PlausibleWeb.BillingController do ) conn - |> put_flash( - :error, - "Something went wrong. Please try again or contact support at support@plausible.io" - ) + |> put_flash(:error, msg) |> redirect(to: "/settings") end end