1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00
* Change env SELF_HOSTING_ENABLED to SELF_HOSTED

* Initial Stripe implementation

* Fix portal link

* Use webhook signatures

* Migrated to new Stripe gem conventions

Also updated resource routing

* Added faraday-multipart gem to resolve middleware notice

* Merge fix

* Merge fix

* Temporary upgrade prompt for early access

* Lint fix

* i18n fixes

* Remove catch-all rescue

* Update .env.example
This commit is contained in:
Josh Pigford 2024-10-08 14:37:47 -05:00 committed by GitHub
parent 41dff228e8
commit 31f3ff6a16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 225 additions and 12 deletions

View file

@ -29,6 +29,6 @@ module Maybe
# TODO: This is here for incremental adoption of localization. This can be removed when all translations are implemented.
config.i18n.fallbacks = true
config.app_mode = (ENV["SELF_HOSTING_ENABLED"] == "true" ? "self_hosted" : "managed").inquiry
config.app_mode = (ENV["SELF_HOSTED"] == "true" ? "self_hosted" : "managed").inquiry
end
end

View file

@ -1,8 +1,16 @@
---
en:
settings:
billings:
show:
manage_subscription_button: Manage subscription
page_title: Billing
subscribe_button: Subscribe
subscription_subtitle: Manage your subscription and billing details
subscription_title: Manage subscription
nav:
accounts_label: Accounts
billing_label: Billing
categories_label: Categories
feedback_label: Feedback
general_section_title: General

View file

@ -13,6 +13,12 @@ en:
no_account_subtitle: Since no accounts have been added, there's no data to display.
Add your first accounts to start viewing dashboard data.
no_account_title: No accounts yet
subscribe_prompt:
guarantee: We're reasonable people here. If you're not happy or something doesn't
work, we'll gladly refund you.
subscribe: Upgrade your account
subtitle: To continue using Maybe, please subscribe!
title: Upgrade
upgrade_notification:
app_upgraded: The app has been upgraded to %{version}.
dismiss: Dismiss

View file

@ -13,8 +13,11 @@ Rails.application.routes.draw do
resource :profile, only: %i[show update destroy]
resource :preferences, only: %i[show update]
resource :hosting, only: %i[show update]
resource :billing, only: :show
end
resource :subscription, only: %i[new show]
resources :tags, except: %i[show destroy] do
resources :deletions, only: %i[new create], module: :tag
end
@ -104,6 +107,9 @@ Rails.application.routes.draw do
resources :currencies, only: %i[show]
# Stripe webhook endpoint
post "webhooks/stripe", to: "webhooks#stripe"
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", as: :rails_health_check