#TheMechanic-payout-from-payment-intent

1 messages ยท Page 1 of 1 (latest)

stiff jungle
#

Hello ๐Ÿ‘‹
Give me a few to look into it

#

I don't think we support this flow out of the box like we do for Payouts -> PaymentIntents

An alternative is (I'm not sure if this would work 100% as I've not tried it personally but)

  • You can retrieve the PaymentIntent
  • It should have charges associated to it
  • The charge will have a balance_transaction object on it

At this point you can list all payouts and filter them by balance_transaction ID.
Brute force approach but would work

weak pawn
#

Ok I'll try this, at least for migration DB purpose. By the way, what webhook should I listen to, for getting the list of payment_intents when a payout is done ?

stiff jungle
#

payout.paid event is fired when a payout is expected to arrive
I don't think there are any specific events for PaymentIntents in this case. You'd need to retrieve those with the method that you've mentioned in the question

weak pawn
#

ok, that begins to be clearer ! many thanks for your quick response !

stiff jungle
#

NP! ๐Ÿ™‚ Happy to help