mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Billing (#1269)
* 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:
parent
41dff228e8
commit
31f3ff6a16
27 changed files with 225 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue