#tot_docs

1 messages ¡ Page 1 of 1 (latest)

coarse bluffBOT
#

👋 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/1318185542076338308

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fringe nimbus
#

What do you mean by:

I would like to take an application fee of course for my marketplace but somehow this is not possible if I don't specify a direct transfer. Is something like this supported?
What have you tried so far and what do you mean by 'direct transfer'?

light pier
#

If I understood the docs correctly, I would need to specify the transfer_data property on the payment intent if I want to include an application fee.
This transfer data would directly transfer the funds to exactly one vendor as it's not supported to specify multiple vendors there.

I tried essentially what I copy pasted there. I was trying to create a payment intent via the sdk with exactly the sent props.

#

I would like to take an application fee and capture the payment, and afterwards transfer the data to the vendors.

fringe nimbus
#

So you want to separate the payment and transfer processes to do the transfer part manually?

light pier
#

Well I would not say that I want that, I just don't see any other options.
Thank you for this, I looked at this previously but I don't see any application fee mentioned here.

fringe nimbus
#

Well you don't specify the fee directly, you'd just transfer an amount minus the fee you want to keep from the original payment:

  • $10 payment
  • $1 fee
  • $9 transfered to account(s)
#

Contrived example but you get the idea

#

(there's a diagram on that page that outlines the general flow of funds)

light pier
#

Oh, got it. Thank you. So I would need to implement this manually.
Just found the diagram you mentioned.

Do you maybe know if this same flow can be applied for invoices?
In a few months we will have a client who wants the same flow with invoices instead of direct bank payments.
I am aware that the transfers will happen directly after the invoice is paid and this will trigger a webhook etc. But generally the flow should be the same

fringe nimbus
#

Sure, the same principles apply for invoicing. Under the hood the invoice uses the same payment primitives (intents, etc) and you can just create the manual transfers off the back of that