#xinjin - webhooks
1 messages · Page 1 of 1 (latest)
Charge.succeeded
event is triggered
in local
Ofc,
I am using test key.
After deployment,
It is not triggered.
Do you mean the event is not generated, or do you mean your code doesnt do what you expect?
I think code is
Can you share the example event id from test mode?
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?
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?
So, I am generating connected accounts dynamically.
After the account is verified,
I want to get the event.
On the local
I was testing
by CLI.
ok but what happens for the deployment
Nothing triggered.
again what do you mean
what is that endpoint id
can you send that we_123 id from the top right
we_1JTrQ4IqjQenjcYZFXxjH55X
thanks
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
Sure, thats a whole different pathway
make it work like that?
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
So Now I set a connect type webhook, right?
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
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
Ok.Thank you.