#xxxxx-payouts

1 messages ยท Page 1 of 1 (latest)

fair hollow
#

Hey! Sure, do you have a specific question or concern?

gleaming quarry
#

As i am working on a stripe project that has a method that runs daily and send the payouts to our seller bank + it also has a webhook that receives event like payout.create , payout.paid , payout.updated . I am confused when it already have a method that will send payouts to seller bank then what will this webhook do?

fair hollow
#

Are you using automatic payouts?

gleaming quarry
#

yes what's the process?

fair hollow
#

Those events are just notifications. There's no required action for you to take, but you may wish to action them somehow (like sending an email or something)

gleaming quarry
#

so in the automatic process, when a payout is created it is sending payout.created event.Right?

#

can i have automatic payout and manually handling the payout both in my project? How they are different?

fair hollow
gleaming quarry
#

What If i manually handle the payouts, what will be the use of these events?

fair hollow
#

As stated, these are just notifications that you may want to action. For example, if a payout failed you would likely want tor resolve that

gleaming quarry
#

And in my project when i am manually handling the payout why it is throwing payout.created event that means the payout is automatically creating?

fair hollow
#

The payout.created event will fire in cases of manual payouts too (i.e. you making the POST /v1/payouts call)

gleaming quarry
#

When i am manually making any payout i am storing the payout id in my database also. And this webhook is sending me a payout.created event but this payout.id doesn't exist. This payout id was not generated by my method that sends the payout manually.

fair hollow
#

Can you share the Payout ID that is confusing you

gleaming quarry
#

That's why this event is failing.

#

po_1KTKY0QWA2uiCHmA3CG2tEaL

#

can you please check this as i am confused.

fair hollow
#

Looks like a standard Connect payout created for acct_1KGy56QWA2uiCHmA

gleaming quarry
#

so how will i just resolve this as am in test mode right now. So this problem can occur in production as well

#

how should i resolve this?

fair hollow
#

Something in your code/integration is creating that payout

#

That account has manual payouts configured, so something is explicitly creating it

gleaming quarry
#

no in my system their is only a single method that is generating the payout.

fair hollow
#

Then I expect that method created this payout too

gleaming quarry
#

is it not mixing the payout generated in production with test mode?

fair hollow
#

No, that was created using test keys

gleaming quarry
#

is their any solution for this? I have also deleted the webhook and created again. But still the problem is not resolved.

#

what i think , that may be stripe generating this payouts automatically?

#

I am really confused.

fair hollow
#

I'm not sure how the webhook is related here? This is a Payout object created via an API from what I assume is your integration (we aren't creating this automatically as the merchant is on a manual schedule)

#

There's the creation request

#

I assume you're Gato Marketplace? (acct_1ITYJhHFt6qIi7wn)

gleaming quarry
#

yes.

#

but if its created by my method it should be stored in the database.

fair hollow
#

Then I guess that call to update your database failed!

gleaming quarry
#

Hello can i ask a question if in case i have generated a payout manually and its status is pending . Now how should i handle this?

fair hollow
#

What do you mean, 'how should I handle this'?

gleaming quarry
#

yes.

fair hollow
#

What do you mean? That's up to you?

#

Is this in test mode?

#

Can you share the Payout ID?

gleaming quarry
#

po_1KU8nuQhwqq4XdlskrckwwhM

#

and the events will be sent related to that payout id which i will generate?

fair hollow
#

I don't understand the question?

fair hollow
#

I guess the initial status is pending on creation, but in test mode they're paid instantly

gleaming quarry
#

so their should also be a payout.pending event also?

#

which i should handle.

fair hollow
#

Nope, there's no such event

#

pending === payout.created

gleaming quarry
#

will there is a github repo for my reference of manually handling the payouts?

fair hollow
#

I don't think so. What specific help do you need?

#

The only manual part about them is the creation. We still handle the payout transaction itself

gleaming quarry
#

yes but my webhooks are failing.

fleet hound
#

do you have an example of an event evt_xxx that is failing to be delivered as a webhook? Not sure I follow the question.

gleaming quarry
#

you know i have a method that is manually handling the payouts , so we are storing the payout_id in my database . Next this webhook is sending me events but they are failing because that particular payout id is not generated by my method which is manually handling the payout, i don't know how this is possible.

#

As my function is also working fine which i have checked. It is storing the payout id .

#

why it is sending me a payout.created event when i am generating the payout manually? and its status is paid

#

evt_1KTKY1QWA2uiCHmAEOWwRpHh

fleet hound
#

why it is sending me a payout.created event when i am generating the payout manually?
that's just how it works, when the object is created we also generate events and send webhooks.

#

Next this webhook is sending me events but they are failing because that particular payout id is not generated by my method
not sure what you mean, the payout ID you created via the API is po_1KTKY0QWA2uiCHmA3CG2tEaL and that is the ID returned inside that payout.created event(inside event.data.object.id ) so that's all normal.

gleaming quarry
#

if this payout_id was generated by me then definately it should be inside the database . And one more thing this ba_1KRAf0QWA2uiCHmA51oevFzw account is also not in my database.

umbral vessel
#

Hi ๐Ÿ‘‹ jumping in as @fleet hound needs to step away.

#

That bank account also appears to have been created by your integration, unfortunately we don't have any insight into why these values wouldn't be in your database.

gleaming quarry
#

And one more question i want to ask the payout will be send to that bank account whose default_for_currency is set to true?