Commit Graph

9 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
88b130e5bd Fix payment settings controller CI tests
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/9463e7ff-98f1-44dd-a64b-d578c486e07b

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:57:33 +00:00
copilot-swe-agent[bot]
2a3e95efc9 Skip Stripe lookup when payment link id is missing
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/efba0c75-5f82-41a1-b618-532d38e222da

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:36:31 +00:00
copilot-swe-agent[bot]
7a9d207626 Tighten Stripe payment link lookup tests
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/efba0c75-5f82-41a1-b618-532d38e222da

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:35:11 +00:00
copilot-swe-agent[bot]
f1f1bc91cc Handle missing Stripe payment link gracefully
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/efba0c75-5f82-41a1-b618-532d38e222da

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:33:37 +00:00
copilot-swe-agent[bot]
e0d2150e2d Use Stripe payment link id for contribution URL
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/efba0c75-5f82-41a1-b618-532d38e222da

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:31:54 +00:00
copilot-swe-agent[bot]
118fd47ca5 Localize and configure payment contribution link
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/b2581b3a-0e39-4226-bbaa-6fd6dd69e8a6

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:20:40 +00:00
copilot-swe-agent[bot]
6727dbc531 Add one-time contribution link to payment settings
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/b2581b3a-0e39-4226-bbaa-6fd6dd69e8a6

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
2026-04-04 12:18:32 +00:00
Juan José Mata
e0fb585bda Hide contribution payments from demo user(s) (#738)
* Hide payment contribution options from demo and manually created users

Demo data users and manually created users don't have stripe_customer_id
set on their family, so they should not see payment/contribution options.

Changes:
- Add can_manage_subscription? method to Family::Subscribeable that checks
  for presence of stripe_customer_id
- Guard Settings::PaymentsController to return 403 for users without
  stripe_customer_id
- Guard SubscriptionsController#show action (Stripe portal redirect) for
  users without stripe_customer_id
- Update settings navigation to hide the payment link when
  stripe_customer_id is not present
- Add tests for the new behavior

* Fix broken test

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-23 12:35:49 +01:00
Juan José Mata
8e36c8e736 Rename billing to payment throughout the codebase (#726)
* Rename billing to payment throughout the codebase

This change updates terminology from "billing" to "payment" to better
reflect that these are contributions/payments rather than bills.

Changes include:
- Rename BillingsController to PaymentsController
- Rename billing_email to payment_email
- Rename next_billing_date to next_payment_date
- Rename create_billing_portal_session_url to create_payment_portal_session_url
- Update routes from billing to payment
- Update all 12 locale files with new terminology
- Update views, helpers, and tests

* Update app/views/subscriptions/upgrade.html.erb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Juan José Mata <jjmata@jjmata.com>

---------

Signed-off-by: Juan José Mata <jjmata@jjmata.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-21 19:06:00 +01:00