#michael.fraser - payout events

1 messages ยท Page 1 of 1 (latest)

unborn hornet
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

Hey there, where are you not seeing it?

#

Can you share a specific event id and the endpoint id where you expect to see it?

golden current
#

In Stripe CLI logs

unborn hornet
#

eg: evt_1234 and we_123

#

ah, in CLI

#

and you're using stripe listen?

golden current
#

I'm hoping for a payout from the payment intent with event id evt_3Ksub2KLX8auE5d01cViHITo

#

I also can't figure out how to manage my connected accounts that I've been creating via stripe onboarding.

#

I'm receiving all platform events. I don't see any payout events (which I assume are connected events). Do I need to have two stripe CLIs running to receive both event types?

#

Hello?

unborn hornet
#

hey there, sorry was distrcted here

#

reading up!

#

HmmI'm not sure if you can forward both event types at once

#

I'd also suggest splitting your endpoint to have separate URLs for account vs connect to let you distinguish them

#

in production you;ll need to use different secrets to verify signatures

golden current
#

We've already had this discussion. ๐Ÿ™‚

unborn hornet
#

even just a query parameter would be sufficient to make them distinct

golden current
#

I'm using a query param to differentiate in staging and production.

unborn hornet
#

eg /webhooks?connect=true

#

roger

#

nice

golden current
#

So, to verify... are these platform only events?

2022-04-26 16:02:56 --> payment_intent.created [evt_3Ksub2KLX8auE5d01IDteqjv]
2022-04-26 16:02:56 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_3Ksub2KLX8auE5d01IDteqjv]
2022-04-26 16:03:17 --> application_fee.created [evt_1KsubOKLX8auE5d0V5SXYE9G]
2022-04-26 16:03:17 --> transfer.created [evt_3Ksub2KLX8auE5d01MesJkgr]
2022-04-26 16:03:17 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_1KsubOKLX8auE5d0V5SXYE9G]
2022-04-26 16:03:17 --> payment_intent.succeeded [evt_3Ksub2KLX8auE5d01cViHITo]
2022-04-26 16:03:17 --> charge.succeeded [evt_3Ksub2KLX8auE5d01ecQN3XU]
2022-04-26 16:03:17 --> connect payment.created [evt_1KsubO4CjcPbzyRNsXvV9Q78]
2022-04-26 16:03:18 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_3Ksub2KLX8auE5d01MesJkgr]
2022-04-26 16:03:18 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_1KsubO4CjcPbzyRNsXvV9Q78]
2022-04-26 16:03:18 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_3Ksub2KLX8auE5d01ecQN3XU]
2022-04-26 16:03:20 <-- [200] POST https://carolinamckenzie2022425.buildium.com/manager/api/v1/stripe/webhook [evt_3Ksub2KLX8auE5d01cViHITo]

unborn hornet
#

they appear to all be for the same account acct_1K...E5d0

#

Can you try using the query parameters in the listen command too?

golden current
#

platform account, I suspect

unborn hornet
#

it might help clarify which events are going where

golden current
#

I'm not validating the signature locally

unborn hornet
#

You can also try running only with the connect-forward-to option

#

and just ignore the platform events to test

golden current
#

I'm thinking of two stripe instances running. ๐Ÿ™‚

#

stripe CLI, that is

unborn hornet
#

Yep, you can do that in two terminal windows/sessions

golden current
#

I'll give that a try.

unborn hornet
golden current
#

I see the same events in the --forward-connect-to, but only the "payment.created" hits the endpoint.

#

They're all the same connected account, and platform account.

#

I still don't see a payout event from the connected account, though. I set up the connected account's bank account with the success UK account number. But, no payout.paid events are coming.

unborn hornet
golden current
#

Nothing. I can't trigger them for the connected account

#

the connected account is onboarded through Stripe, and I'm not asked to set a password.

#

I'm running in test mode, though. Is there any way to trigger a payout in testmode?

unborn hornet
#

I'm confused then, what made you expect an event if you've not created payouts to emit events?

#

But yes, you can create a manual payout for a test account if you've set it to use manual payouts:

golden current
#

i have no way to trigger them

unborn hornet
golden current
#

i wasn't given the option to set any connected account settings aside from bank account

#

i'd need to connect to the connected account to manually trigger them, though

unborn hornet
#

What do you mean? Your platform needs to be connected to do anything with the account

golden current
#

i can't log in as the connected account to trigger payouts from that side

#

i can't trigger payouts for connected accounts from the platform account

unborn hornet
#

Why not? That will be necessary in order to test these events.

#

Which account are you trying to do this for?

#

eg acct_123

golden current
#

i just said.. onboarding through stripe. no password setup

#

acct_1Kspk04CjcPbzyRN

#

It's been an hour. Could you please stop give me your undivided attention?

unborn hornet
#

Yes you onboarded a test account -- you're not meant to log in with a password. If you want to "log in" to that accounts Express Dashboard in test mode, you must use Account Login Links to do so:

But this is not necessary to create test payouts. You only need to make API requests using the docs I shared:
https://stripe.com/docs/connect/manual-payouts#regular-payouts

Sending manual payouts to your connected accounts

#

eg:

#
curl https://api.stripe.com/v1/payouts \
  -u sk_test_123: \
  -d amount=1000 \
  -d currency="usd" \
  -H "Stripe-Account: acct_1Kspk04CjcPbzyRN"
#

I expect you'll hit an insufficient funds error, assuming the account has no available balance

#

And you'll need to accrue some balance by making payments or transfers

#

Which you can then pay out

golden current
#

I've made a bunch of payments to that account

#

How can I set manual payouts for the connected account?

unborn hornet
#

Did you read the doc i linked?

golden current
#

sorry, i see in docs

#

I've been spinning my wheels for two days. I apologize for my frustration.

unborn hornet
#

Understandable - and i'm sorry i was distracted for a bit earlier, something urgent came up

golden current
#

Now, if I only had linux on my work pc, I could easily curl this.

unborn hornet
#

Which SDK do you use?

golden current
#

.net

#

ps?

unborn hornet
#

The docs have snippets for that too, you can switch

#

then sub in the account id

golden current
#

yeah, it's code, though.. which wouldn't be code I'd want committed to the repo

#

I understand what I need to do.. I just need to do it. ๐Ÿ™‚ Thanks again for the help, sythrider!

unborn hornet
#

code switcher, account substitution

#

NP - hope that helped you get on track!

#

don't hesitate to drop by again if you continue to need help