#Thibau Verberckmoes (Billit)
1 messages · Page 1 of 1 (latest)
When using the cli you can trigger an event for a Connected Account:
https://stripe.com/docs/cli/trigger#trigger-stripe_account
Yes we know, but that still keeps the following empty ->
trigger invoice.finalized --stripe-account acct_1KRMQXXXXu2973d
this one does not work
Can you share the eventId generated please ?
[evt_1NDo5LDjzZu2973dCZnCWoQp]
This one is generated by the following
trigger invoice.finalized --stripe-account acct_1KRXXXXXX73d
Listening to listen --events invoice.finalized --forward-connect-to my.HOST.be/api/Stripewebhook
this event is generated correctly for the account acct_1KRMQWDjzZu2973d
You need to create a connect webhook endpoint
how do i create it with the CLI localy?
Listening to listen --events invoice.finalized --forward-connect-to my.HOST.be/api/Stripewebhook
if you have a domain then create it via the dashboard.
not using the listen command
your stripe cli is logged in as the Connected or the Platform account ?
platform (the owner of the app)
Let me do a quick test...
ok
When you hit stripe tigger, on the listen command, are you seeing connect [event_type] or just the [event type] ?
Can you share the screenshot from where you get this eventId ?
That means the event wasn't triggered as connected
Can you try upgrading your stripe cli to the latest version please
You should be seeing connect like the screenshot I shared
Happy to help!
So I updated to version -> 1.14.7
I am listening with the following command ->
listen --events invoice.finalized --forward-connect-to my.local.billit.be/api/Stripewebhook
Triggering the invoice ->
trigger invoice.finalized --stripe-account acct_1KRMQWDjzZu2973d
The webhook finalisation sees the following ->
2023-05-31 15:07:18 --> invoice.finalized [evt_1NDokDDjzZu2973dL5DFeObS]
Not the connect thing you are showing above
Hello 👋
if you remove all the flags you're passing in to stripe listen then are you seeing any connect events coming in?
like remove --events and --forward-connect-to
let me check
trigger invoice.finalized --stripe-account acct_1KRMQWDjzZu2973d this one i keep?
take out --stripe-account too
I wonder if you're logged in with your connected account on the CLI instead
event ID should be fine
2023-05-31 15:15:39 --> customer.created [evt_1NDosIDjzZu2973dSkR2zdxn]
2023-05-31 15:15:40 --> customer.updated [evt_1NDosIDjzZu2973dCIq8PDIb]
2023-05-31 15:15:40 --> invoiceitem.created [evt_1NDosIDjzZu2973deJnwf4tk]
2023-05-31 15:15:40 --> invoice.created [evt_1NDosJDjzZu2973dv9OnFjw1]
2023-05-31 15:15:40 --> invoiceitem.updated [evt_1NDosJDjzZu2973dTVp6MwIh]
2023-05-31 15:15:41 --> payment_intent.created [evt_3NDosJDjzZu2973d36dCfRUq]
2023-05-31 15:15:41 --> invoice.updated [evt_1NDosKDjzZu2973d45VlB5To]
2023-05-31 15:15:41 --> invoice.finalized [evt_1NDosKDjzZu2973dxXrPmUlI]
What's your platform account ID?
Is acct_1KRMQWDjzZu2973d your platform account OR connected account?
yes
hmm
should be platform acocunt
how would i be certain? this account is the master account for the APP
Gotcha. I think you're passing the same account ID to --stripe-account parameter which expects it to be the connected account ID instead
You can check the account ID here (all the way to the bottom)
https://dashboard.stripe.com/settings/user
You can create a connected account in test mode, yes
Sure
yup, now you can add the other flags back like forward-connect-to and so on