#Thibau Verberckmoes (Billit)

1 messages · Page 1 of 1 (latest)

hybrid graniteBOT
light remnant
tribal vortex
#

Yes we know, but that still keeps the following empty ->

#

trigger invoice.finalized --stripe-account acct_1KRMQXXXXu2973d

#

this one does not work

light remnant
#

Can you share the eventId generated please ?

tribal vortex
#

[evt_1NDo5LDjzZu2973dCZnCWoQp]

#

This one is generated by the following

trigger invoice.finalized --stripe-account acct_1KRXXXXXX73d

light remnant
tribal vortex
#

how do i create it with the CLI localy?

light remnant
#

if you have a domain then create it via the dashboard.

#

not using the listen command

tribal vortex
#

hmm ok

#

but how does my local catch it then?

light remnant
#

your stripe cli is logged in as the Connected or the Platform account ?

tribal vortex
#

platform (the owner of the app)

light remnant
#

Let me do a quick test...

tribal vortex
#

ok

light remnant
#

When you hit stripe tigger, on the listen command, are you seeing connect [event_type] or just the [event type] ?

light remnant
hybrid graniteBOT
tribal vortex
light remnant
#

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

tribal vortex
#

ok let me try

#

thanks

light remnant
#

Happy to help!

tribal vortex
#

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

empty hazel
#

Hello 👋

tribal vortex
#

also the webhook is not triggering my local debug

#

Hi!

empty hazel
#

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

tribal vortex
#

let me check

#

trigger invoice.finalized --stripe-account acct_1KRMQWDjzZu2973d this one i keep?

empty hazel
#

take out --stripe-account too
I wonder if you're logged in with your connected account on the CLI instead

tribal vortex
#

same response

#

you need my accountID?

empty hazel
#

event ID should be fine

tribal vortex
#

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]

empty hazel
#

What's your platform account ID?

#

Is acct_1KRMQWDjzZu2973d your platform account OR connected account?

tribal vortex
#

yes

#

hmm

#

should be platform acocunt

#

how would i be certain? this account is the master account for the APP

empty hazel
#

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

tribal vortex
#

hmm ok, can generate a fake one for testing?

#

or does it have to be an actual one

empty hazel
#

You can create a connected account in test mode, yes

tribal vortex
#

This one probably

empty hazel
#

Sure

tribal vortex
#

ok thanks, i will test with this now

#

Seems to be doing more now

empty hazel
#

yup, now you can add the other flags back like forward-connect-to and so on

tribal vortex
#

works

#

thanks