#leslyb_connect-split

1 messages ¡ Page 1 of 1 (latest)

slate sealBOT
#

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

devout ledge
#

leslyb_connect-split

viral sigil
#

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?
devout ledge
viral sigil
#

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?

devout ledge
#

yes

viral sigil
#

awesome, I get it, thanks @devout ledge i appreciate it!