#abdullah-yousuf_webhooks
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/1333747983543439361
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
i want to hold the payment in plaftorm . and when the shift is completed . transfer it to vet once he/she completes the shift after deducting platform fees
another case to handle is for extra hrs. that if vet has done overtime we have to create another payment intent for extra hrs from hospital and not hold it this time but direct transfer to vet after deducting platform fees again
we can integrate both these payment intents and create only one payment intent while checking for extra hrs too
Hi, let me help you with this.
In this case hospital is a Customer, which is charged by the Platform. Each vet is a Stripe Connected account, connected to the Platform. You can use the Separate Charges and Transfers approach here to manually create Transfers from Platform to Connected account balance. After that, Connected accounts with create (or schedule) Payouts to get funds into their external bank accounts.
For extra hours, if you want to Transfer immediately upon charge - you can use destination charges: https://docs.stripe.com/connect/destination-charges
I recommend reading through these docs to get a better understanding of Connect.
and for holding the payment?? just create a payment intent from hospital which will dump into platform account. and upon completion use transfer api to transfer to vet ?
Yes, if this is what you mean by "holding". It will be help on the Platform account's balance.
and if i don't want to redirect to stripe for any payment. use payment intent instead of checkout session??
rest logic remains the same??
In each article, you can select what type of integration do you want to build. In your case it will probably be Custom flow.
another thing is i want to setup intent for future use in my case like creating payment intent once the shift has been completed but fetching payment details from hospital while creating the shift. how do i get that same payment method id from that setup intent to deduct after the shift has been completed
like setup intent while creating the shift
and payment intent using that same payment method id used for setup intent to deduct after the shift has ended