#skynet_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/1242230736459661343
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
I recommend starting with looking through documentation on Stripe Connect
transfers money between 2 users for a service
Have you looked through the different funds flow options for Connect? https://docs.stripe.com/connect/charges
If you've chosen destination charges, this means funds are routed to your platform account and then transferred to the connected account (the account that is performing the service). A fee is also transferred back to your platform: https://docs.stripe.com/connect/charges#destination
You would use a PaymentSheet to safely collect customer payment details: https://docs.stripe.com/payments/accept-a-payment?platform=ios&mobile-ui=payment-element
I did not know about PaymentSheet, thank you i'll take a look into that
Is there a way so that payments go directly to destination account without hitting ours first, and just the fee is taken out
Yep, that's called direct charges: https://docs.stripe.com/connect/charges#direct
So in this scenario, the Platform account charge happens from User A (cc/bank account) and then gets sent to User B (Connected Account )
I just noticed the blue cc icon on the left, it does seem exactly how i described it
In this scenario (a destination charge), a customer pays your platform for the service (with a cc, bank acount, or some other payment method type). Funds are transferred from your platform to the connected account's balance
perfect. and if PaymetSheet is used how do we pass Connected Account info to it, is it something we need to store on our end or Stipe handles it
If you use destination charges, you'll use your platform keys when making calls. The only time you'd need to pass the connected account's ID is when creating a PaymentIntent (for transfer_data.destination): https://docs.stripe.com/api/payment_intents/create#create_payment_intent-transfer_data
If you use direct charges, you'll use your platform keys but pass the connected account ID server side and client side: https://docs.stripe.com/connect/authentication?create-client=swift
thank you!
I take it i can have my own api server handle it and not do it through the app directly correct?
Your own backend server would handle creating PaymentIntents, right