#michael - Payout Event

1 messages ยท Page 1 of 1 (latest)

lethal shore
#

HI ๐Ÿ‘‹

worn relic
#

Hmm.. I don't see it in the platform account logs, as I'd expect. I have a sneaking suspicion that I'm using a different API key, which could definitely cause this issue. Give me a few...

#

No, I'm setting the secret api key that I'd set to StripeConfiguration.ApiKey right before placing the request. Any other thoughts on why the balance transaction list call might not be showing up in my dashboard logs?

lethal shore
#

Generally that is usually an account token issue. Trying to fetch payouts that don't exist on the account identified by the API key. If you can see the payout in your dashboard then please confirm the API key is also the same as in that dashboard

worn relic
#

Although, I just noticed that I was looking at the connected account logs which had the payout api calls logged. In the platform account, I don't see the balance transaction list api called either, though.

#

Do I need to specify the connected account id in the request options? (I'm developing in .net)

lethal shore
#

If that is where the record lives then you will need to pass the Stripe Account header in each request

worn relic
#

Am I correct in assuming that the Stripe.NET library sends that header information in the RequestOptions object?

#

Or, could you point me to documentation on setting Stripe Account header? Maybe it will have a .NET example.

lethal shore
worn relic
#

Ok, when I specify the connected account id, I get the exception "Balance transaction history can only be filtered on automatic transfers, not manual."

How can I test this quickly if I can only do automated payout schedule?

lethal shore
#

What API are you requesting?

worn relic
#

Quoting my introduction to this request:

Hello, while trying to handle a payout.paid event, I'm looking up the balance transactions (list) to resolve the payout to the source payout intent ids. However, I get an error from Stripe saying "No such payout: 'po_1KtawX4CjcPbzyRNSjVVr8Ma'" even though I'm grabbing it from the payout.paid event. I also see the same payout in my dashboard.

#

So, in short - balance transaction list. I'm trying to figure out what payment intent ids sourced a payout event.

#

Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?

lethal shore
worn relic
#

I gathered that from the exception message.

lethal shore
#

That would be my best approach if you want to verify the use of the Balance Transactions List API to match up with specific payouts.

worn relic
#

Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?

lethal shore
#

Otherwise you could use the starting_after and ending_before parameters to filter the transactions

worn relic
#

Allow me to reiterate my question: How can I test this quickly if I can only do automated payout schedule?

#

I'm specifying the payout id in the request. I want to know how I can quickly test in test mode, even though automatic payouts are enabled

lethal shore
#

Was the payout ID the result of an automatic payout?

worn relic
#

No. I'm asking how do I quickly test when the payout is sent when the account is set to an automatic payout schedule.

#

Am I going to have to wait for an hour, a day, a week, depending on the schedule to test the webhook event for payout.paid?

#

Or, for that matter, a week because the minimum delay is 7 days?

lethal shore
worn relic
#

Are you not Stripe Support?

lethal shore
#

No

worn relic
#

Even accelerated payouts are in the scope of days for international payouts.

lethal shore
#

Have you tested using the Stripe CLI to trigger fake events?

worn relic
#

I need them to correlate to data I have in my database

#

I am querying balance transactions in response to them, so the API needs to respond accordingly. I'm doing end-to-end testing.

#

Is it possible to accomplish this with stripe CLI triggers?

lethal shore
#

Ugh. sorry to get your hopes up. Payout.paid is not a supported event.

final escarp
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. I just wanted to confirm that there is not a way to force an automatic payout in test mode, so to fully test this you will need to wait for time to pass (likely 7 days). But this is a good concern to raise and I'm submitting feedback about this to our teams.

worn relic
#

Understood. It's a bummer. Stripe has done such a great job of impressing me. This last mile has been frustrating, though. It is what it is. Thanks for sending notes upstream.