#kenny_webhooks

1 messages ยท Page 1 of 1 (latest)

icy graniteBOT
ripe cipherBOT
#

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.

icy graniteBOT
#

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

runic iris
#

im trying to test it locally so I can grab the function where i grab the account id from the headers

sinful sphinx
#

Grab th account id from which headers?

#

What are you trying to do with the event you shared, for example: evt_1PK7zkBtulXzgaJcoRRysgk3

runic iris
#
@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

sinful sphinx
#

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

runic iris
#

oh okay, I guess I was confused by this:

#

but that's not actually a header?

sinful sphinx
#

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

runic iris
#

I'm just trying to read webhook events of the people who install my app

icy graniteBOT
runic iris
#

One support team said I had to use stripe connect another said an app would work. It's just very confusing

sinful sphinx
#

Register a webhook endpoint in the Stripe Dashboard, and select Listen to events on Connected accounts when registering your webhook endpoint.

runic iris
#

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.

runic iris
#

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?

sinful sphinx
#

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

runic iris
#

What's the external test functionality?

sinful sphinx
#

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

runic iris
#

okay but i wouldnt be able to install it on my own account that made the app?

#

that doesnt make much sense

heavy flame
#

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

runic iris
#

ok

#

i dont see the external app button as shown in the link above

heavy flame
runic iris
#

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