#leslyb_connect-split
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/1242975118959968256
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
leslyb_connect-split
@viral sigil what you are describing looks like Separate Charges and Transfers: https://stripe.com/docs/connect/charges-transfers
looking at this code
line_items: [
{
price_data: {
currency: 'usd',
product_data: {name: 'T-shirt'},
unit_amount: 1000,
},
quantity: 1,
},
],
payment_intent_data: {
transfer_data: {
amount: 877,
destination: '{{CONNECTED_ACCOUNT_ID}}',
},
},
mode: 'payment',
success_url: 'https://example.com/success',
})```
the transfer here would apply to the account that is selling the service, which would leave me with the remainder, but how do I compensate the 3rd account?
you create a Transfer to send funds from your platform balance to their account: https://docs.stripe.com/api/transfers/create
I see so I first create the charge which takes care of my account and the account of the user selling the service, then I create a transfer if the charge is successful from my account to that of a 3rd person, is that the gist of it?
yes
awesome, I get it, thanks @devout ledge i appreciate it!