#adrian.1437

1 messages ยท Page 1 of 1 (latest)

grand falconBOT
jolly shell
#

Hello ๐Ÿ‘‹
How can I help?

eternal beacon
#

transfer_list = stripe.Transfer.list(transfer_group=payment_intent.transfer_group, destination=connected_account_id)

#

but im getting null

#

so we did transfer to connected account

then I want to get that transfer so I can do reversal

jolly shell
#

Can you share the request ID?

eternal beacon
#

hello there's no request id

#

{
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/transfers"
}

#

this is what the data returns in the python api

jolly shell
#

If you check the support article, it would show you how you can find the request ID using the dashboard

eternal beacon
#

it seems there's no logs for retrieving transfers ๐Ÿ˜ฆ

jolly shell
#

Interesting, do you have the transfer ID (tr_xxx) by any chance?

eternal beacon
#

tr_3Nn0IhG6kTQSc6vK0u2c1pjV

#

i would like to get this transfer
so this is my code
transfer_list = stripe.Transfer.list(transfer_group=payment_intent.transfer_group, destination=connected_account_id)

jolly shell
#

gotcha, looking..

#

Can you share the code you're using for this?

eternal beacon
#

but when I try in my local it works fine, but when deploying the code. it doesn't return anything

#

transfer_list = stripe.Transfer.list(transfer_group=payment_intent.transfer_group, destination=connected_account_id)

#

connected_account_id = "acct_1M2CEU4UrptCXjPX"

#

transfer_group="d01d84a8-4aba-4648-bf92-201c5191f7e9"

jolly shell
#

When you retrieve after deploying, what API key are you using? Live mode or Test mode?

This transfer was made in test mode, so it is possible that you're not using the right key.

Also, tr_3Nn0IhG6kTQSc6vK0u2c1pjV was made to acct_1KE9JXQGELKFbCwc and NOT acct_1M2CEU4UrptCXjPX

eternal beacon
#

im using test mode secret key

#

sorry this should be tr_3Nn0BFG6kTQSc6vK1fImBlPK

#

tr_3Nn0BFG6kTQSc6vK1fImBlPK

#

im building in right now in test mode

jolly shell
#

if you take out the transfer group and just pass in the connected account ID, are you seeing the transfer returned in the list?

eternal beacon
#

yeah i can see them in my local

#

so they works in my local

#

but when I deploy it in dev

#

which uses the same api key test mode

#

it doesnt work

jolly shell
#

Are you setting Stripe-Account header somewhere when you deploy?

Do you see any errors?

eternal beacon
#

transfer_list = stripe.Transfer.list(
destination=connected_account_id,
transfer_group=payment_intent.transfer_group,
stripe_account=platform.id,
)

#

so the transfer was from our platform account to connected account

jolly shell
#

So I found the request
https://dashboard.stripe.com/test/logs/req_dhQxmhufOjUntk

it seems like your code once you deploy has a Stripe-Account header set which means you're making the API request on behalf of an account

if you're setting stripe_account parameter somewhere, then you'd want to comment it out

eternal beacon
#

stripe_account=platform.id?
is it okay? it works on my local

jolly shell
#

no, you shouldn't set it to anything at all

eternal beacon
#

req_W1C9PW2XlmKlKg

jolly shell
#

You're passing the wrong transfer group

You're passing transfer_group: "30b8501d-add0-4612-9517-d0dea6a7e68b"
Instead of "d01d84a8-4aba-4648-bf92-201c5191f7e9" for tr_3Nn0BFG6kTQSc6vK1fImBlPK

grand falconBOT
eternal beacon
#

oh @jolly shell I can see it now wooo

#

it works on our testing enviroment