#chris-hars_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1231018410398453893
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
So it looks like that requst failed because you were trying to make it on the platform account without passing the Connect account header. Since the Payment Intent was created directly on the Connect account, you need to make sure your requests to retrieve it are also made to the Connect account
This is the Account ID for the Account the Payment Intent lives on --> acct_1P7Pv8Rk5fjvnCVC
Happy to help! Are you all squared away?
how can i pass the connected account in the header? can you help me to figure the correct documentation?
Yup! We document that here; https://docs.stripe.com/connect/authentication
i think i missing a step
What language are you using?
python
stripe.api_key = STRIPE_SECRET_KEY
payment_intent = stripe.checkout.Session.retrieve(
'pi_3P7QIHRk5fjvnCVC0fnoTGx9',
expand=['latest_charge.balance_transaction'],
)
fee_details = payment_intent.latest_charge.balance_transaction.fee_details
this is my function
but in order to collect payments i use stripe.checkout.Session.create
could it work?
Add this line to your API call:
stripe_account='{{SOME_CONNECTED_ACCOUNT_ID}}',