#kenny_webhooks
1 messages ยท Page 1 of 1 (latest)
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.
- kenny_apps-webhooks, 2 hours ago, 7 messages
- kenny_webhooks, 5 hours ago, 63 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1245836915756765204
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
#1245733139054202976 is the thread im mentioning
im trying to test it locally so I can grab the function where i grab the account id from the headers
Grab th account id from which headers?
What are you trying to do with the event you shared, for example: evt_1PK7zkBtulXzgaJcoRRysgk3
@router.post("")
async def handle_webhook(
request: Request,
stripe_signature: str = Header(None),
):
config = get_config()
signing_secret = config.STRIPE_SIGNING_SECRET
headers = request.headers
account_id = headers.get("Stripe-Account")
...
the Stripe-Account header
That's not a header sent on webhook events
that's a header used on API requests made by a platform to make requests as a conencted account
For connect webhook endpoints, events from connected accounts will have the account specified within the payload:
https://docs.stripe.com/api/events/object#event_object-account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmm that tooltip is a bit confusing
It's referring to the way you make api requests for those accounts, but that's not necessarily relevant here
I'm just trying to read webhook events of the people who install my app
One support team said I had to use stripe connect another said an app would work. It's just very confusing
Register a webhook endpoint in the Stripe Dashboard, and select Listen to events on Connected accounts when registering your webhook endpoint.
Think of it as if I wanted to make it so people could install my app so that I can send discord notifications whenever the event.paid invoice came up.
right, but how do i test that locally?
The listen to button tooltip says it's a header
but running it locally doesnt say that
and how do I verify whether my account is connected to it or not?
It looks like you'll need to have the app installed on other accounts to test the connect account events, i don't expect you'll be able to do that locally with just a single account
I think using the "External Test" functionality ought to do what you need, or should
What's the external test functionality?
This
It allows you to privately publish and install on select other account, typically other test account you control or within your org, or a small group of beta users etc
okay but i wouldnt be able to install it on my own account that made the app?
that doesnt make much sense
๐ Stepping in for my teammate. You'll need to use another test account and install it there in order to test the connect account events. You won't be able to test these events on your own account that made the app
We're not experts on Dashboard flows/UI for Stripe Apps. I recommend reaching out to our Support team about this: https://support.stripe.com/contact/
right, I've been stuck on this for over a week now and have been thrown from one stripe team to another. How exactly can I be sure that what I'm told about the stripe app automatically being considered a connected account actually being true? I know it's not your guys' fault but the lack of documentation/examples regarding this is quite troubling