#oftysterista_best-practices

1 messages ยท Page 1 of 1 (latest)

abstract sentinelBOT
#

๐Ÿ‘‹ 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.

calm phoenix
#

hello

rigid parcel
#

๐Ÿ‘‹

#

First you should have a Stripe Account for each website

#

and so a webhook endpoint for each website

abstract sentinelBOT
calm phoenix
#

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

little marsh
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

calm phoenix
#

so website A and website B will use the same backend from this payment services

little marsh
#

is this in the context of Connect?

calm phoenix
#

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

little marsh
#

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

calm phoenix
#

the same stripe account

#

because they both hit to my separate backend called "payment service"

little marsh
#

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

calm phoenix
#

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?

little marsh
abstract sentinelBOT