From 7842b4a04435eaf5edd1da03859a46713aea5661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Thu, 22 Jan 2026 19:22:55 +0000 Subject: [PATCH] Fixes to contributions payment copy --- app/controllers/subscriptions_controller.rb | 4 ++-- app/views/settings/payments/show.html.erb | 2 +- test/controllers/subscriptions_controller_test.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rb index d45ef093f..754cfbc3a 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 a202f5a7d..ca56148ec 100644 --- a/app/views/settings/payments/show.html.erb +++ b/app/views/settings/payments/show.html.erb @@ -13,7 +13,7 @@
<% if @family.has_active_subscription? %>

- Currently on the <%= @family.subscription.name %>. + Currently on the <%= @family.subscription.name %>.
<% if @family.next_payment_date %> <%= t("views.settings.payments.renewal", date: l(@family.next_payment_date, format: :long)) %> diff --git a/test/controllers/subscriptions_controller_test.rb b/test/controllers/subscriptions_controller_test.rb index cb4d1d08a..4599b9530 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