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

Payments #2

Open
8 of 16 tasks
sritampatnaik opened this issue Apr 30, 2021 · 6 comments
Open
8 of 16 tasks

Payments #2

sritampatnaik opened this issue Apr 30, 2021 · 6 comments
Assignees

Comments

@sritampatnaik
Copy link
Contributor

sritampatnaik commented Apr 30, 2021

Implement Subscription Payments

  • Create

    • 3 tiers of payments Free, Basic and Premium
    • For now keep Basic as $49 and Premium as $99
    • If paid annually then Basic will be $500and Premium will be $1000
    • Stripe should have automated a lot of this already
  • Update

  • Middleware and access control

    • Research if needed but this should be something that gets called while navigating URLs and while calling APIs
    • Sample URLs
      • / -> Dashboard [Everyone can access]
      • /free -> Sample Free URL [Everyone can access]
      • /basic -> Sample Basic URL [Both Basic and Premium plans can access but not free]
      • /premium -> Sample Premium URL [Only Premium plans can access but not free and basic]
    • If they are in they are not allowed to view the page or perform the action show a modal that asks them to upgrade and has a button that brings them to the billings tab in the settings page

Using

@sritampatnaik
Copy link
Contributor Author

sritampatnaik commented May 3, 2021

  • Upon returning from Stripe to Dashboard it shows login screen first. The routing or whatever it is should check the logged in state before showing the screen
  • Billings should be in /settings/billing right? Currently it's /dashboard/settings/billing
  • Upon clicking Save and Manage Subscriptions (disable the button and show a loader like this)

Screenshot 2021-05-03 at 11 16 00 PM

@MrAyush
Copy link
Collaborator

MrAyush commented May 3, 2021

In /dashboard thier is navbar logic

@sritampatnaik
Copy link
Contributor Author

sritampatnaik commented May 4, 2021

  • Update the tiers to have Free
  • Add Premium product feature
  • Show invoices
  • Check if we can show address

@sritampatnaik
Copy link
Contributor Author

sritampatnaik commented May 5, 2021

  • Return URL for stripe settings/billing

Case 1: User doesn't have any subscription

  • Show [Save] button
  • Hide [Manage Subs]
  • With checkboxes and toggle for annual billing

**Case 2: Have already subscribed **

  • Hide [Save] button
  • Show [Manage Subs] + Show a red button [Cancel Subscription] -> both go to the same place
  • Hide checkbox and hide toggle button

@sritampatnaik
Copy link
Contributor Author

sritampatnaik commented May 6, 2021

  • Return URL upon Saving/Adding still redirects to dashboard
  • Upon coming back from Stripe if they upgrade or downgrade their plan show this toast

@sritampatnaik
Copy link
Contributor Author

sritampatnaik commented May 7, 2021

  • Move firebase and stripe creds to a .env file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants