#rich-jones_best-practices

1 messages ยท Page 1 of 1 (latest)

scenic edgeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1419592505380573215

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

valid lake
#

Hi! Can you provide more details about the business case: need a one buys for many model and one that does not allow seat pooling.?

scenic edgeBOT
subtle sedge
#

so my clients will be businesses and one of the users in each business will be the billing contact and will have access to a debit or credit card to pay for the subscriptions of eveyone on their business

#

I want each subscription to be tied to a named user so that my clients cannot rotate users to subscriptions

#

Currently my app creates a stripe customer silentlly via an API call when the first user signs up for a free trial

#

And 'buys' (again silently) a ยฃ0 free trial subsription

patent sapphire
subtle sedge
#

I want my app to have minumim code so I want to exploit as may of the features of stripe as possible

patent sapphire
#

Yeah a Connect setup is pretty involved and will require at least some code/developer integration experience

subtle sedge
#

This connected-account-platform is not an apporach I've seen so far....

#

So my business clients are the gym, and I need a per seat charging model, is that right ?

patent sapphire
#

Hmm, maybe I misinterpreted your use case. To clarify, you're building a platform on which your users can bill/charge their customers, but you want to charge your customer for use of the platform?

subtle sedge
#

M y app so far makes API calls and has a webhook setup, both are working fine

#

My first app is a CRM like app, my clients will be small/medium size businesses and the users will be their sales/finance team members

patent sapphire
#

OK< but there's not multiple parties? e.g. your clients are not charging customers too?

subtle sedge
#

So someone in the company will pay the subscription fees for all the users.

patent sapphire
#

OK, then disregard Connect that's irrelevant. My bad

#

Then it sounds like you're describing a regular pet seat subscription model where you only ever have 1 seat (quantity), and then your application will have logic to 'allow' other users to access the product undernearth the active Stripe subscription

subtle sedge
#

Just FYI I experimented with the SupaBase Stripe FDW, but ditched that in favour of webhooks, but happy to use FDW if helpful

subtle sedge
patent sapphire
#

Your app would need to handle the limitation logic to prevent 5 users for 3 seats, etc

subtle sedge
patent sapphire
#

Great! Then what Stripe specific Qs can I help with?

subtle sedge
subtle sedge
patent sapphire
subtle sedge
#

Great, thanks for confirming this for me.

patent sapphire
# subtle sedge If you refer to this : https://discord.com/channels/841573134531821608/141959250...

As I said, the logic that controls a subscription having 3 seats and restricts access to 3 'users' of that subscription is something you'd need to implement in your app. As an example:

  • User Y subscribes to product 1. They buy 3 seats for their business
  • Your app allows user Y to configure their seats inside your app
  • They add abc@, xyz@ and foo@ to their account to 'fill' the sctive seats
  • Now when those email addresses sign in to your app, your app can check that they still have access to an active/paid Stripe subscription and allow them to access it
  • Other email address should be forced to sign up separately
subtle sedge
#

Once a payment has been attached to the customer, can any of my users change the quantity or does this need to be a specific person, e.g. the contact for the customer

patent sapphire
subtle sedge
#

Is there a way to tie a license to a subscription in stripe? I am aware I can add metadata to the stripe customer, so I could use that.

patent sapphire
#

Can model this is as like a authorization system (e.g. user Y has permission to update/cancel the sub, but the other users I mentioned don't)

patent sapphire
subtle sedge
#

I can't see how entitlements would work, can you explain please ?

patent sapphire
#

It's a way to know if/when to provision/unprovision access to features in your app

#

If the license part is purely a license number or something then I'd just use metadata on the Subscription

subtle sedge
#

Can I loop back on Supabase's FDW for stripe ?

patent sapphire
#

Sure, but I'm not really familiar with it

subtle sedge
#

It allows my DB to have a read replica of the stripe tables contained within it

patent sapphire
#

What's the Q?

subtle sedge
#

I guess it would be "Is this a better option than Webhooks for being notified of changes ?"

patent sapphire
#

I don't think that would actually notify you of changes though? It just keeps things in-sync between your Postgres instance and Stripe account?

subtle sedge
patent sapphire
#

Still feels like webhooks are crucial especially for a Billing integration where you want to know if/when payments fail, users cancel a sub, etc

subtle sedge
#

I agree.

patent sapphire
subtle sedge
#

Thank you for clarifying things for me. I was on the right track, so I'll crack on a code up my app as needed ๐Ÿ™‚

patent sapphire
#

Perfect, let us know if you have any follow-ups

subtle sedge
#

Can I come back to this discussion if needed later ?

patent sapphire
#

We close the threads after ~30 minutes, but you can always reference it afterwards. Any other Qs will need to be a new thread via #help

subtle sedge
#

So I can grab a link to this and refer to it in a new help request ?

patent sapphire
#

Yep, that works. The bot actually tells us if you've had any recent threads, too

subtle sedge
#

Cool, thank you very much, you've been brilliantly helpful ๐Ÿ‘

patent sapphire
#

No problem, glad I could help!

subtle sedge
#

Have a great day

patent sapphire
#

you too!