#anrighiwr_best-practices
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/1339984895346475098
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, yes that is exactly what the Separate Charges and Transfres is designed for. You collect the Payment once, and then transfer different amounts to different accounts.
how can i achieve it by code? can i pass more than an account to the trasfer dictionary?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what i am trying to do is: user pays 17€/monthly
- 15€ monthly subscription to product A, that goes to company1
- 2€ monthly subscription to product B, that goes to company2 (or the platform itself)
company1 pays a fee for its product, whereas company2 does not
right now we have 2 separate payments, but we don't like it since UX is complex
You create the subscription on your Platform Account, https://docs.stripe.com/api/subscriptions/create. Then, you make another call to create the transfers: https://docs.stripe.com/api/transfers/create
There should be a single payment, and then 2 transfers
can i apply a application fee to the transfer?
and how does it work for the montlhy renewals? should I create the transfers manually?
You would not likely use Application fee here as you're holding the amount you desired. You decide how much you want to transfer.
Yes, you would need to create these transfers manually each time
I recommend that you review the document carefully: https://docs.stripe.com/connect/separate-charges-and-transfers
ok so i should check the hooks probably
Yes, once the payment succeeds, https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#handle-post-payment-events you can create these Transfers
what if i want to use a destination charge instead? would it be possible to achieve the same result?