#xxxxx-payouts
1 messages ยท Page 1 of 1 (latest)
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?
Are you using automatic payouts?
yes what's the process?
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)
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?
That's correct yes
Depends what you mean by 'project'? Payout scheduling is managed on a per account basis: https://stripe.com/docs/connect/manage-payout-schedule
What If i manually handle the payouts, what will be the use of these events?
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
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?
The payout.created event will fire in cases of manual payouts too (i.e. you making the POST /v1/payouts call)
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.
i don't know from where this payout.id comes?
Can you share the Payout ID that is confusing you
That's why this event is failing.
po_1KTKY0QWA2uiCHmA3CG2tEaL
can you please check this as i am confused.
Looks like a standard Connect payout created for acct_1KGy56QWA2uiCHmA
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?
Something in your code/integration is creating that payout
That account has manual payouts configured, so something is explicitly creating it
no in my system their is only a single method that is generating the payout.
Then I expect that method created this payout too
is it not mixing the payout generated in production with test mode?
No, that was created using test keys
if my method has created this payout then definately it should be in my database.
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.
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)
Then I guess that call to update your database failed!
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?
What do you mean, 'how should I handle this'?
yes.
What do you mean? That's up to you?
Is this in test mode?
Can you share the Payout ID?
po_1KU8nuQhwqq4XdlskrckwwhM
and the events will be sent related to that payout id which i will generate?
I don't understand the question?
status: 'paid'
I guess the initial status is pending on creation, but in test mode they're paid instantly
Nope, there's no such event
See here: https://stripe.com/docs/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
pending === payout.created
will there is a github repo for my reference of manually handling the payouts?
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
yes but my webhooks are failing.
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.
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
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 ispo_1KTKY0QWA2uiCHmA3CG2tEaLand that is the ID returned inside thatpayout.createdevent(insideevent.data.object.id) so that's all normal.
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.
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.
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?