#xinjin - webhooks

1 messages · Page 1 of 1 (latest)

marsh bison
#

hey there, i need t go soon but can you say more about what is not working?

granite cradle
#

Charge.succeeded

#

event is triggered

#

in local

#

Ofc,

#

I am using test key.

#

After deployment,

#

It is not triggered.

marsh bison
#

Do you mean the event is not generated, or do you mean your code doesnt do what you expect?

granite cradle
#

I think code is

marsh bison
#

Can you share the example event id from test mode?

granite cradle
#

right

#

evt_3K0Bg4IqjQenjcYZ1jPSj9R1

#

It is triggered in local.

#

And on the deployment,

#

some events is triggered.

#

account.updated

#

It was triggered

#

on

#

deployment.

#

the events number has limit?

marsh bison
#

no, you need to be more precise. looking at the account for that event, you have no configured endpoints.

#

Are you using a connect endpoint on another account?

#

The account for that event is not connected to anything

#

What is that endpoint id in your url right now?

#

we_123

#

Are you expecting stripe to deliver to your deployed endpoint, or are you forwarding from the CLI?

#

What have you been able to debug in your server logs?

#

Does the request arrive and then fail? WHere does it fail?

granite cradle
#

So, I am generating connected accounts dynamically.

#

After the account is verified,

#

I want to get the event.

granite cradle
#

I was testing

#

by CLI.

marsh bison
#

ok but what happens for the deployment

granite cradle
#

Nothing triggered.

marsh bison
#

again what do you mean

granite cradle
#

I set the hook for the main account.

marsh bison
#

what is that endpoint id

granite cradle
marsh bison
#

can you send that we_123 id from the top right

granite cradle
#

we_1JTrQ4IqjQenjcYZFXxjH55X

marsh bison
#

thanks

granite cradle
#

Oh

#

I can see only

marsh bison
#

ok, the event you sent evt_3K0Bg4IqjQenjcYZ1jPSj9R1 is for your platform account

#

it wont go to a connect type webhook

#

you need to generate a charge.succeeded event on a connected account if you want that

granite cradle
#

By forwarding to cli

#

it was working.

#

Is there any way to

marsh bison
#

Sure, thats a whole different pathway

granite cradle
#

make it work like that?

marsh bison
#

you were explicitly forwarding the events in a way that doesnt happen in production

#

you want events from your own account?

#

Then you need your endpoint to not be a connect type endpoint

#

connect type endpoints only get events from connected accounts

granite cradle
#

So Now I set a connect type webhook, right?

marsh bison
#

That what you already have

#

If you want events from your on account your need an account type endpoint

#

you might need both

#

for different things, since you say you also want connected account updated events

granite cradle
#

Yeah,

#

I am seeing I need both.

#

Can I set them with same endpoint?

marsh bison
#

you can, but dont

#

it gets very confusing

#

use two endpoints, or at least use a query parameter

#

because you need to know which signing secret to use

#

they will be two different secrets

#

I need to head out now, but take a read through that stuff, set up the other end point, and test stuff carefully

granite cradle
#

Ok.Thank you.