#JacquesVivi

1 messages ยท Page 1 of 1 (latest)

silver sundialBOT
stoic veldt
#

So I have the paymentId : pi_3NOpI3K5IWeP9lF81MI9B2W3

#

And need to retreive the payoutId :
po_1NSrXaGd86hvr2GbL1nkUwUA

wooden vine
#

Hmm not sure if there's a way to get to the Payout from the PaymentIntent.
Mostly folks go about this the other way around: payouts -> PaymentIntent

stoic veldt
#

Could you confirm it ?

#

That it has no way to get the payout from the PaymentIntent

#

And match the related transactions with my database ?

wooden vine
stoic veldt
#

I try but i got this error : Uncaught (Status 400) (Request req_i2edzpR0yBMeLA) No such payout: 'po_1NSrXaGd86hvr2GbL1nkUwUA'

#

Ok is working

#

I have to used the second example

wooden vine
#

๐Ÿ‘

stoic veldt
#

I study the return. If a paymentIntent is on a balance transaction for "Payout_1" then he is disputed, couple of days laters, and the fund are reversal to the plateforme. Will he appears also on "Payout_2" ?

#

To be clear, one paymentIntent can it be link to multiple payouts ? (1 to many ?)

wooden vine
#

Do you mean if the PaymentIntent will appear in the negative payout?

stoic veldt
#

yes

#

$txn->source->source_transfer->source_transaction

#

could it appears on two payouts or more ?

wooden vine
#

My understanding is that the source for the negative payout would be the dispute/refund and not the PaymentIntent itself. So I don't think it would show up twice, let me double check though

stoic veldt
#

Ok thanks

silver sundialBOT
wooden vine
#

Yeah just confirmed, the PaymentIntent ID shouldn't show up as source twice in the payout

#

In case of dispute/refund, it would be the dispute/refund object which would be the source