#some1ataplace_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- some1ataplace_best-practices, 2 hours ago, 15 messages
- some1ataplace_api, 22 hours ago, 53 messages
- some1ataplace_api, 1 day ago, 11 messages
- some1ataplace_api, 1 day ago, 23 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1258166607788773406
đ Have more to share? Add details, code, screenshots, videos, etc. below.
A user on my website could have 2 different stripe connect accounts. This is the portion of my stripe checkout session that would need 2 connect accounts to transfer to:
payment_intent_data={
'transfer_data': {
'destination': affiliate_connected_account,
'amount': int((converted_amount / 100) * settings.STRIPE_CONNECT_AFFILIATE_PERCENT),
},
},
This example is an affiliate_connected_account but I will also have a content_creator_connected_account also.
These docs explain how to do that: https://docs.stripe.com/connect/separate-charges-and-transfers
It would be a separate transfer api call? I can't do anything else in the checkout session?
Like this? Plus what I have above in the checkout session?
stripe.Transfer.create(
amount=7000,
currency="usd",
source_transaction='{{CHARGE_ID}}',
destination='{{CONNECTED_ACCOUNT_ID}}',
)
Or this?
payment_intent_data={"transfer_group": "ORDER100"},
Where do I specify transfer group?
Please follow the docs. They explain exactly how to do this
i'll just ask the AI then...
Best of luck!
Could this work?
payment_intent_data = {
"transfer_data": {
"destinations": [
{
"account": affiliate_connected_account_1,
"amount": int((converted_amount / 100) * settings.STRIPE_CONNECT_AFFILIATE_PERCENT_1)
},
{
"account": affiliate_connected_account_2,
"amount": int((converted_amount / 100) * settings.STRIPE_CONNECT_AFFILIATE_PERCENT_2)
},
# Add more destinations as needed
]
}
}
destinations isn't a valid parameter. And this is not a method to use to create Separate Charges and Transfers. This creates a Destination charge, which won't work for your billing model.