#tiago-rodrigues_api
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/1293538029096665148
📝 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.
- tiago-rodrigues_api, 23 hours ago, 28 messages
- tiago-rodrigues_api, 4 days ago, 12 messages
StripeConfiguration.ApiKey = defaults.StripeApiKey;
var service = new WebhookEndpointService();
var options = new WebhookEndpointCreateOptions
{
Url = $"{domain}SIBS/stripe",
EnabledEvents = new List<string>
{
"customer.subscription.created",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.resumed",
"customer.subscription.updated",
},
Description = "Webhook para Subscrições",
};
await service.CreateAsync(options);
You can't, they're not exposed via the API
If you're building as a Connect extension/plugin then you should configure a Connect webhook to receive events from uses of your plugin, as opposed to creating webhooks on their account directly
Otherwise, if you're just asking them to provide their Stripe API keys in plugin configuration then you can't really get the secret to do the webhook signature verification
If you want to do webhook signature signing then you need the secret for the endpoint. Unless you plan to ask all of your plugin users to manually provide you with that, then yes
Ok, i will try
Is there a tutorial for setting up stripe connect?
hi! I'm taking over this thread.
connect is quite broad, it depends exactly what you are looking for.
but here are the genreral docs: https://docs.stripe.com/connect
I need to first set up the webhook, and then get the webhook
to setup connect webhooks, you can follow this guide: https://docs.stripe.com/connect/webhooks
That's correct?
var service = new WebhookEndpointService();
var options = new WebhookEndpointCreateOptions
{
Url = webhookUrl,
EnabledEvents = new List<string>
{
"customer.subscription.created",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.resumed",
"customer.subscription.updated",
},
Connect = true
};
I recommend testing this in test mode to see if it works.
or you can also create the endpoint in the Stripe dashboard directly.
The goal is to have the entire process automated, without human interaction, that is, configuring through the dashboard is not an option
got it. then yes you should try the code yourself, that's the best way to know if it works or not.
My question is how does Connect webhook work if it is not specified which customer account was created by the webhook?
the code you shared above creates a webhook endpoint on your own Stripe account, but it will listen to events happenning on all your connected accounts. and in the event payload you will receive the account ID that generated the event.