#adrian.1437
1 messages ยท Page 1 of 1 (latest)
Hello ๐
How can I help?
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
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
If you check the support article, it would show you how you can find the request ID using the dashboard
it seems there's no logs for retrieving transfers ๐ฆ
Interesting, do you have the transfer ID (tr_xxx) by any chance?
message='Stripe API response' path=https://api.stripe.com/v1/transfers?transfer_group=d01d84a8-4aba-4648-bf92-201c5191f7e9&destination=acct_1M2CEU4UrptCXjPX response_code=200
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)
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"
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
im using test mode secret key
sorry this should be tr_3Nn0BFG6kTQSc6vK1fImBlPK
tr_3Nn0BFG6kTQSc6vK1fImBlPK
im building in right now in test mode
if you take out the transfer group and just pass in the connected account ID, are you seeing the transfer returned in the list?
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
Are you setting Stripe-Account header somewhere when you deploy?
Do you see any errors?
should I add the stripe_account=platform.id?
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
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I already set it to platform.id
stripe_account=platform.id?
is it okay? it works on my local
no, you shouldn't set it to anything at all
req_W1C9PW2XlmKlKg
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
oh @jolly shell I can see it now wooo
i just add the stripe_account=platform.id
it works on our testing enviroment