#Kamon

1 messages ยท Page 1 of 1 (latest)

undone bayBOT
slate hedge
#

It seems like the stripe trigger {{EVENT_NAME}} command only works for non-connected account events

tall harness
#

๐Ÿ‘‹ Checking it now

slate hedge
#

Thanks!

tall harness
slate hedge
#

Correct, that's what I'm doing, but it doesn't specify how to trigger connected account events

tall harness
#

There are two steps here:

  1. Set up forwarding connect event to localhost with --forward-connect-to
  2. Trigger event on connected account with --stripe-account that includes connected account ID

Could you share which commands that didn't work for you?

slate hedge
#

Ah! the --stripe-account flag is the magic sauce ๐Ÿ™‚

#

Thank you!

tall harness
#

No problem! Happy to help ๐Ÿ˜„

slate hedge
#

Hrm, having an issue still.

When running stripe trigger --stripe-account {{ACCOUNT_ID}} account.updated I get the following error:

Connect platforms cannot create new accounts on behalf of their connected accounts.

#

The account id that I'm using is valid and has onboarded

tall harness
#

After checking triggering account.updated event will create new connected account ID and perform update. It can't be triggered on existing connected account ID

slate hedge
#

That's weird. That only happens with the CLI, correct?

I'm looking to test webhook events to check when the payouts_enabled field changes on a connected account

#

If it creates an entirely new account each time....that's kind of weird, don't you think?

#

Not sure how I'd even test that functionality

tall harness
#

Yup! trigger in CLI is simply for testing purpose when you don't have any integration setting up.

If you wish to test account.updated on the existing connected account ID, it can perform via API such as completing onboarding process

slate hedge
#

Gotcha!

Is there a way to disabled/enabled payouts for a connected account so I can test that functionality?

tall harness
#

This will only work for connected account that has payout enabled

slate hedge
#

Perfect, you rock!

Now, one last thing:

Does the stripe listen --forward-to method when you're forwarding to your localhost, forward actual events happening for live/test accounts?

#

or is it only for events triggered via the CLI?

#

I need to head out, but please still respond if you can.

Thanks in advance for all of your help!

Have a good night ๐Ÿ™‚

tall harness
#

Thanks for waiting!

Does the stripe listen --forward-to method when you're forwarding to your localhost, forward actual events happening for live/test accounts?
If you have --forward-to setup, the event will be forwarded to the localhost. By default, it only forwards test mode events unless --live is specified: https://stripe.com/docs/cli/listen#listen-live

#

or is it only for events triggered via the CLI?
listen command will listen events on your account regardless whether it's triggered by CLI or API