#umairasif - connect payouts
1 messages ยท Page 1 of 1 (latest)
Hey there, can you explain what you're trying to do exactly? Do you have any example requests you can share that you're having trouble with?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I have to payout manually from stripe connect account to external bank accounts, I have added multiple bank accounts against single connect account, Now I want to payout in the default external bank account of that specific connect account.
I have to use this.
$stripe->payouts->create([
'amount' => 1100,
'currency' => 'usd',
]);
but in this request, I have to add specific stripe connect and external bank account
Ah, you need to use the account header to specific for which account you're creating the payout:
https://stripe.com/docs/connect/manual-payouts#regular-payouts
The destination account is option, and not needed if you want it to go to the default for that currency
https://stripe.com/docs/api/payouts/create#create_payout-destination is an optional parameter
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks, it worked.
NP!
one more thing, when we do a payout, which webhook event do we have to listen once payout status updated?
You can find the events for payouts here: https://stripe.com/docs/connect/bank-debit-card-payouts#webhooks
For payouts event, I tried a failed payout by adding the test bank of insufficient_funds,
I then looked for the events, it called all the webhook events including created, updated, paid and failed. paid webhook will always be called in any case? Like this was the failed payouts, will it be called on every type of payouts?
Can you share the test payout ID you created?
po_1KRfzMR8CnBroTH04mtQqr5W
You there?
HI ๐ @elder bane had to step away but I'm looking into this payout
Alright.
Could you please check this
๐ Just hopping in to help - Yes, I believe you receiving a payout.paid event is expected behavior. We send that event when a payout is expected to land in your account, but if it does fail we'll follow that up with a payout.failed event (see 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.