#chris-hars_api

1 messages ¡ Page 1 of 1 (latest)

cedar mangoBOT
#

👋 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.

subtle flareBOT
ocean spoke
#

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

warm nexus
#

First of all, thank you for your promptly reply

#

and yes it is

ocean spoke
#

Happy to help! Are you all squared away?

warm nexus
#

how can i pass the connected account in the header? can you help me to figure the correct documentation?

ocean spoke
warm nexus
#

i think i missing a step

ocean spoke
#

What language are you using?

warm nexus
#

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?

ocean spoke
#

Add this line to your API call:
stripe_account='{{SOME_CONNECTED_ACCOUNT_ID}}',

warm nexus
#

it works, really thank you

#

i'm really impressed by your customer support