#abdullah-yousuf_webhooks

1 messages ¡ Page 1 of 1 (latest)

high girderBOT
#

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

scenic wedge
#

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

pure crest
#

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.

#

I recommend reading through these docs to get a better understanding of Connect.

scenic wedge
#

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 ?

pure crest
#

Yes, if this is what you mean by "holding". It will be help on the Platform account's balance.

scenic wedge
#

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??

high girderBOT
pure crest
#

In each article, you can select what type of integration do you want to build. In your case it will probably be Custom flow.

scenic wedge
#

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

mild forge
#

hi! I'm taking over this thread.

#

once the SetupIntent is confirmed, it will contain a PaymentMethod object, that you can reuse in the future with a PaymentIntent.