#testDeveloper
1 messages ยท Page 1 of 1 (latest)
Are you asking how to confirm a Payout to an external account was complete?
yes
You can just check the status of the Payout object (https://stripe.com/docs/api/payouts/object#payout_object-status) to confirm that it's been successful
what webhook should i apply for it?
You can listen for the payout.paid event
ok
difference between payout.created & payout.paid ?
it says this in shell
This is not a valid argument for stripe trigger: payout.paid
Hi there ๐ I'm jumping in as my teammate needs to step away. Please bear with me a moment while I catch up on the context here.
payout.created is triggered whenever a Payout object is created:
https://stripe.com/docs/api/events/types
payout.paid is triggered when the Payout is believed to have been completed, and the funds have been made available in your External Account.
https://stripe.com/docs/api/events/types#event_types-payout.paid
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You cannot use the Stripe CLI to trigger a test payout.paid event. The Stripe CLI triggers events by taking necessary actions to create the necessary criteria for an event to be generated. Some events, such as payout.paid require actions to occur that cannot be triggered purely by the Stripe CLI or API, in which case those events cannot be triggered from the CLI.
Ho do i test it ?
You can make a request to your own endpoint simulating us making a request containing a payout.paid event. What flow are you trying to test that would be triggered by this type of event? Could you hardcode the test so that it doesn't rely on having a real event?
i want to know the date of payout in app
You can make a request to your own endpoint simulating us making a request containing a payout.paid event. Kindly elaborate on this
To clarify, you want to know the date of when the payout will be available in the associated External Account? That is hard for us to predict as it depends on the bank that is receiving the funds how fast those funds are made available and shown to the account owner.
If you want to use our estimate, then you can check the arrival_date field on the Payout object to see when we think the funds will become available.
https://stripe.com/docs/api/payouts/object#payout_object-arrival_date
Please let me know if you're instead talking about when the Payout object was created.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What I was referring to when I mentioned this is using a tool to create an HTTP request to your webhook endpoint, and including a payload on that request that mimics the structure of a payout.paid event. It's difficult to provide too many specifics without knowing what tool/libraries you'd be looking at using to do this.
can i do it using postman ?
Yup, that's one of the tools I commonly see used to create one-off test requests.
so in that i need to hardcode event type to payout.paid right?
Yes, in that case you would need to craft the payload body that should be sent with the request. If you have access to another Stripe account with recent payout.paid events, or have examples on the account where you're working, then you can use those events to get an idea of what the structure of the body should be.
What does "suppose charge" mean here?
You should be able to see the expected arrival date on the object itself https://stripe.com/docs/api/payouts/object#payout_object-arrival_date