#Caesar-customer-subs
1 messages · Page 1 of 1 (latest)
Hi there
No, line_items are required. You can create Products and Prices up front if you know what you are going to charge ahead of time. But it sounds like you are doing a donation type of payment in which case you would need to use line_items.price_data as you stated.
Got it, thanks!
Then to simplify
The problem is that if the person abandons the payment these previous steps will be created in vain, then I would have to delete them, customer, price, product, this could be done with webhooks but imagine having a lot of requests, it would saturate my server.
You are saying if the customer hits the Checkout Session but doesn't complete it you are worried about the extra Customers/Prices that would be created
?
Well my application looks like this. /en-Ca/acct_1L21DmJRAgQdHhWT i.e. in each path there are different clients using connect, so if i create a webhook in the path of the client id then the actions that the client performs will come up right there? it won't cross with other clients? only what comes up right there?
Sorry, I don't really understand what you mean by that. The way Connect Webhooks work is that we indicate in the webhook event the Connected Account that the event took place on, so you can easily differentiate between Connected Accounts.
Does that answer what you are asking?
If not, can you clarify?
Simply that the session is aborted and does not take place. So my interest would be to delete the generated data like, customer, price and product. To avoid having data that I'm not going to use.
This makes sense
Yeah overall that's normal. My recommendation would be to just not worry about it and ingest data to your database based on successful sessions and the webhooks they emit.
But if you really want to clean it up in your Stripe Account, then you can.
Only in non-effective cases.
Ok I'm going to go deep into the webhooks and make a decision.
Thanks Man!