#cnguyen-transfer-group

1 messages · Page 1 of 1 (latest)

torpid pike
cloud talon
#

Hi. I have a pi_XXX.

torpid pike
#

Hey there 👋

cloud talon
#

I retrieve it. And I have the transfer_group associated

#

When I want to do a something like

#

const transferList = await stripe.transfers.list({
destination: paymentIntent.on_behalf_of,
transfer_group: paymentIntent.transfer_group,
limit: 4
})

#

The data are empty

#

And I don't understand why. Because I know that I have at least one or 2 transfer with this transfer group

torpid pike
#

Do you have the request ID associated with the request where you saw this behavior?

cloud talon
#

And even in my PI_XXX, I have the transfer_group. So I have one transfer corresponding

#

req_LzYGfSyTbjAG2T

torpid pike
#

Thanks, taking a look

#

Do you have the id of that PI or transfer group?

cloud talon
#

yes

#

I make test with

#

pi_1HvNveED5xkfDv2cNe1aDTQC

#

And you will see the transfer group associated is acct_1HrfyS2RMgXRVOch / a636be7f-0f72-4eb5-8036-f874463ca7ad / sdsd@sdsds.com / cus_IWQnPkVNX7z1Gf / FORM / 2020-12-06T14:09:34.042Z

torpid pike
#

I do see that transfer group provided in your request appears to match what is in the PI, continuing to dig.

cloud talon
#

ok

torpid pike
#

So I'm struggling to find any transfers associated with that PaymentIntent, which would make sense as it seems to be incomplete. It has a status of requires_payment_method.

cloud talon
#

ok maybe I need to do it with an one successful one

torpid pike
#

Yeah, give that a shot and let us know if it doesn't work as expected. We don't create the transfer objects before the a successful charge has been made.

cloud talon
#

OK it's that !

#

OMG I waste a lot of time just because I take the current example given in the doc api

#

thank you

#

with a successful one is good

torpid pike
#

Awesome, glad to hear it's working!