#brunoripa.

1 messages ยท Page 1 of 1 (latest)

hushed burrowBOT
random belfry
#

Hello

acoustic tartan
#

Hi !

random belfry
acoustic tartan
#

Ok, I see your point. Thanks. So, potentially, by adding proper metadata I could fetch a "customer's catalog", too.

#

๐Ÿ˜‰

random belfry
#

Yep

acoustic tartan
#

What's the impact on Stripe about this ?

random belfry
#

No impact

acoustic tartan
#

there might be thousands of products, potentially

#

ok

random belfry
#

metadata is designed for purposes like this.

acoustic tartan
#

no scaling issues, then.

random belfry
#

And we have no limit on Products/Prices

acoustic tartan
#

Yeah, I have read that

#

cool

random belfry
#

๐Ÿ‘

acoustic tartan
#

I am now guessing how much should I leverage my local DB and how much the stripe backend ๐Ÿ˜…

#

Is there any best practice suggested ?

random belfry
#

Yeah up to you really. We mostly recommend using your own DB but it really depends on the integration and use-case.

acoustic tartan
#

but syncronizing things could make things annoyingly complex with lots of edge cases to handle ๐Ÿค”

random belfry
#

The issue with using Stripe here is that you can run into scale issues with rate limits (https://stripe.com/docs/rate-limits) if you are constantly needing to retrieve big lists and whatnot

random belfry
acoustic tartan
#

Yeah, I'd imaging you might be throttling api

#

Another thing is not clear to me is pricing. If you imaging a CRUD page for products, it's clear you'd have the chance to change prices. Now, prices can't be changed, but you have to:

  1. create a new one
  2. change the default price on the product
  3. delete the old price

or, to the best of my understanding, I could update the price by creating a new one using a lookup_key and using it to modify the product price. Have I understood this :?

random belfry
#

Yes that's correct. You either want to create a new one using lookup_key or you could potentially create them inline using price_data

#

Are you using Stripe Checkout here?

acoustic tartan
#

Yeah

random belfry
acoustic tartan
#

And not creating products stripe-side won't make any difference in terms of invioices etc ?

acoustic tartan
paper ivy
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. When you're asking about whether this impacts invoices, is that because you're planning to use these Products/Prices later on down the road when creating Invoices, or is that just in regards to having Checkout Sessions create Invoices for completed payments?

acoustic tartan
#

I will be selling products on behalf of customers, and get a cut of that. Then I will send them money (every X days)

#

I was just asking about invoices in case they might be needed, and if a different implementation of products should have been taken into account for possible edge cases

paper ivy
#

Happy to talk through that in more details in there are questions, but in general there isn't a concern with using price_data and product_data. I don't recall exactly, but I think you may run into problems later on if you try to reuse the Prices/Products created that way, but if you aren't I wouldn't anticipate any problems.

I'm not sure how far you've gotten in picking your integration, but in general when selling on behalf of a third-party, where you need to send them funds for the payments, we typically recommend using Stripe Connect:
https://stripe.com/connect
It's meant for handling scenarios like that and works well for marketplace like platforms.

If you're handling paying out your vendors on your end though, then you may not have a need for Connect.