Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Fixes to contributions payment copy

Juan José Mata7842b4a04435
diff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rb
index d45ef093fb..754cfbc3aa 100644
--- a/app/controllers/subscriptions_controller.rb
+++ b/app/controllers/subscriptions_controller.rb
@@ -51,9 +51,9 @@ class SubscriptionsController < ApplicationController
if checkout_result.success?
Current.family.start_subscription!(checkout_result.subscription_id)
- redirect_to root_path, notice: "Welcome to Sure! Your subscription has been created."
+ redirect_to root_path, notice: "Welcome to Sure! Your contribution is appreciated."
else
- redirect_to root_path, alert: "Something went wrong processing your subscription. Please contact us to get this fixed."
+ redirect_to root_path, alert: "Something went wrong processing your contribution. Please try again."
end
end
diff --git a/app/views/settings/payments/show.html.erb b/app/views/settings/payments/show.html.erb
index a202f5a7df..ca56148ecf 100644
--- a/app/views/settings/payments/show.html.erb
+++ b/app/views/settings/payments/show.html.erb
@@ -13,7 +13,7 @@
<div class="text-sm space-y-1">
<% if @family.has_active_subscription? %>
<p class="text-primary">
- <span>Currently on the <span class="font-medium"><%= @family.subscription.name %></span>.</span>
+ <span>Currently on the <span class="font-medium"><%= @family.subscription.name %></span>.</span> <br />
<% if @family.next_payment_date %>
<span><%= t("views.settings.payments.renewal", date: l(@family.next_payment_date, format: :long)) %></span>
diff --git a/test/controllers/subscriptions_controller_test.rb b/test/controllers/subscriptions_controller_test.rb
index cb4d1d08ad..4599b95304 100644
--- a/test/controllers/subscriptions_controller_test.rb
+++ b/test/controllers/subscriptions_controller_test.rb
@@ -71,6 +71,6 @@ class SubscriptionsControllerTest < ActionDispatch::IntegrationTest
get success_subscription_url(session_id: "test-session-id")
assert @family.subscription.active?
- assert_equal "Welcome to Sure! Your subscription has been created.", flash[:notice]
+ assert_equal "Welcome to Sure! Your contribution is appreciated.", flash[:notice]
end
end