frappe / press

Full service cloud hosting for the Frappe stack - powers Frappe Cloud
https://frappe.cloud
GNU Affero General Public License v3.0
259 stars 187 forks source link

feat: saas v2 in-desk checkout #2081

Closed tanmoysrt closed 3 weeks ago

tanmoysrt commented 1 month ago

If site is on trial, the banner will be -

Screenshot 2024-09-03 at 6 00 24 PM

If site is already on paid plan, in the menu bar there will be a button -

Screenshot 2024-09-05 at 1 25 54 PM

On clicking Subscribe or Manage , user will be redirected to a page for Integrated billing & checkout support.

For users, who is still on trial plan and haven't confirmed payment mode

Screenshot 2024-09-05 at 1 21 09 PM

For user, who has upgraded to a paid plan and have valid payment method, will be able to manage billing configuration and invoices

Screenshot 2024-09-05 at 1 22 41 PM Screenshot 2024-09-05 at 1 23 11 PM

Some more screenshots of billing

Screenshot 2024-09-05 at 1 20 55 PM Screenshot 2024-09-05 at 1 21 32 PM Screenshot 2024-09-05 at 1 21 57 PM Screenshot 2024-09-05 at 1 22 52 PM Screenshot 2024-09-05 at 1 23 19 PM Screenshot 2024-09-05 at 1 23 31 PM Screenshot 2024-09-05 at 1 23 39 PM Screenshot 2024-09-05 at 1 23 47 PM Screenshot 2024-09-05 at 1 24 01 PM Screenshot 2024-09-05 at 1 25 54 PM Screenshot 2024-09-05 at 2 53 43 PM Screenshot 2024-09-05 at 2 53 54 PM

A small frappe app has been written, which need to be installed with saas sites app. This will help in

Source code - https://github.com/frappe/fc_saas_helper

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 5.97015% with 126 lines in your changes missing coverage. Please review.

Project coverage is 37.40%. Comparing base (a995116) to head (18f9570). Report is 181 commits behind head on master.

Files with missing lines Patch % Lines
press/saas/api/billing.py 0.00% 58 Missing :warning:
press/saas/api/__init__.py 0.00% 33 Missing :warning:
press/saas/api/site.py 0.00% 14 Missing :warning:
press/saas/api/team.py 0.00% 9 Missing :warning:
press/saas/api/auth.py 0.00% 6 Missing :warning:
...aas/doctype/site_access_token/site_access_token.py 57.14% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2081 +/- ## ========================================== + Coverage 36.85% 37.40% +0.55% ========================================== Files 344 352 +8 Lines 28629 29276 +647 ========================================== + Hits 10551 10952 +401 - Misses 18078 18324 +246 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

nextchamp-saqib commented 1 month ago

Instead of the dialog, maybe a separate "page" in the new app will look better?

tanmoysrt commented 4 weeks ago

Instead of the dialog, maybe a separate "page" in the new app will look better?

Yes, new page will be better ig. I will tryout tomorrow.