Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add billing #329

Merged
merged 41 commits into from
May 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
dafd449
Add trial period
riggraz Apr 19, 2024
bff353a
fix specs
riggraz Apr 19, 2024
20b53bd
fix specs
riggraz Apr 19, 2024
d748fe4
fix specs
riggraz Apr 19, 2024
b64bc74
fix specs
riggraz Apr 19, 2024
f7936bf
fix specs
riggraz Apr 19, 2024
a183ab7
fix application_controller check_tenant_subscription
riggraz Apr 19, 2024
f72bba1
fix
riggraz Apr 19, 2024
e3b223a
default to 7 days if TRIAL_PERIOD_DAYS env var not defined
riggraz Apr 20, 2024
e2bb684
refactor tenant_billings factory
riggraz Apr 20, 2024
16c0fc3
Add basic billing page
riggraz Apr 20, 2024
f819633
add basic payment workflow
riggraz Apr 20, 2024
07270de
Add webhook endpoint for fulfilling completed subscriptions
riggraz Apr 20, 2024
3d428b1
init subscription_ends_at
riggraz Apr 21, 2024
4cdc79f
fix specs
riggraz Apr 21, 2024
9c85a18
add webhook for subscription update + various improvements
riggraz Apr 21, 2024
bf1e85c
fix codeql alert
riggraz Apr 21, 2024
872d106
add tos and pp
riggraz Apr 21, 2024
ddb067f
Improve billing page style
riggraz Apr 24, 2024
5e78e58
Add authentication to billing pages
riggraz Apr 24, 2024
f5e5440
Show "choose another plan" link after 5 seconds
riggraz Apr 24, 2024
4463da4
Move billing page to billing subdomain
riggraz Apr 27, 2024
2132dd2
move everything related to billing to billing subdomain
riggraz Apr 29, 2024
9cc2257
move stripe public key to env variable
riggraz Apr 29, 2024
7bc74c1
disable user sign out on billing pages
riggraz Apr 29, 2024
ae835ba
refactor billing_controller
riggraz Apr 29, 2024
d6850f9
add trial period and tos acceptance in tenant signup
riggraz Apr 29, 2024
0f3e2be
refactor
riggraz Apr 30, 2024
8e89470
Add smooth scrolling to checkout form
riggraz Apr 30, 2024
542b2d8
add some tenant subscription confirmation emails
riggraz Apr 30, 2024
426575f
update some mailer settings
riggraz Apr 30, 2024
37087b7
add some mailers
riggraz May 1, 2024
e9a0db2
add 'owner' method to tenant
riggraz May 1, 2024
99e7b05
add cron jobs to notify tenants in trial period
riggraz May 2, 2024
dbf52bb
increase scrollto checkout delay
riggraz May 2, 2024
24749fd
improve emails
riggraz May 3, 2024
fabb9a1
remove whenever gem and cron from web container
riggraz May 3, 2024
d2d1e0f
minor fixes
riggraz May 3, 2024
836c6c8
add alert near billing when trial ended
riggraz May 3, 2024
5874313
update emails
riggraz May 3, 2024
5f7a814
update rake task
riggraz May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix specs
  • Loading branch information
riggraz committed Apr 19, 2024
commit bff353afd67a9c7dc055d18e5eca6ec94a582c47
1 change: 1 addition & 0 deletions spec/factories/tenant_billings.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FactoryBot.define do
factory :tenant_billing do
tenant
trial_ends_at { Time.now + 1.week }
end
end
Loading