#oftysterista_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ 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/1341344600064917585
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- oftysterista_best-practices, 6 days ago, 30 messages
hello
๐
First you should have a Stripe Account for each website
and so a webhook endpoint for each website
so the webhook will hit to each website?
actually i am creating a module called payment service like a microservice so every transaction will comes from this service
๐ taking over for my colleague. Let me catch up.
so website A and website B will use the same backend from this payment services
is this in the context of Connect?
what do you mean context of connect?
I will repeat my question from the beginning forget the privious one. so I built a payment service (BE) using stripe. so this service will be used by several of my websites such as website A and website B. I implemented the payment_intent.succeeded webhook but I want to run 2 different functions if the transaction is made from different websites. how is the best practice to achieve this
would website A and website B use the same Stripe Account? or are you developing this to be used by your "users"
on their own website
the same stripe account
because they both hit to my separate backend called "payment service"
ok perfect in that case you need to use some sort of metadata on the object to find from which website the event is coming
so meta data is the solution?
is that just like. if i have a one time payment and subscription
both will hit payment_intent.succeeded rigth? but i dont want the function run in for the subscription. we can use the meta data?
yes unfortunately that's the only way in your use-case