#testDeveloper

1 messages ยท Page 1 of 1 (latest)

wraith mauveBOT
split lotus
#

Are you asking how to confirm a Payout to an external account was complete?

iron leaf
#

yes

split lotus
iron leaf
#

what webhook should i apply for it?

split lotus
#

You can listen for the payout.paid event

iron leaf
#

ok

#

difference between payout.created & payout.paid ?

#

it says this in shell

#

This is not a valid argument for stripe trigger: payout.paid

pliant quest
#

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

#

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.

iron leaf
#

Ho do i test it ?

pliant quest
#

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?

iron leaf
#

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

pliant quest
# iron leaf i want to know the date of payout in app

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.

pliant quest
pliant quest
#

Yup, that's one of the tools I commonly see used to create one-off test requests.

iron leaf
#

so in that i need to hardcode event type to payout.paid right?

pliant quest
#

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.

iron leaf
#

ok

#

if suppose charge is available then how much time does it take for payout ?

white zealot
#

What does "suppose charge" mean here?