Okay so basically I am trying to use Stripes API to setup the payments on my platform. I know enough about API’s to have already set up a payment flow that uses the Stripe hosted page to take payments and pass them onto my sellers as a direct transfer.
(user confirms booking - page is redirected to stripe checkout - payment is made and transferred directly to sellers stripe connect account)
I have only used Bubble’s API Connector as I really want to avoid plugins for this.
What I am now struggling with is changing that flow. Instead, I want to integrate Stripes web elements for a custom payment flow (Custom payment flow | Stripe Documentation) and also delay when the funds are transferred to the sellers account.
I really am quite lost on how to do this in bubble and to be honest I’m not entirely sure what questions to ask as the more I look into Stripes API Docs the more confused I make myself.
My current understanding is that I need to follow these steps when a payment is being made:
- Have the user input card details or selection of Apple Pay, After Pay etc. into the payment form and select to pay now (again I have no idea how to get this up and running on the page using Stripes web elements)
- Create a payment intent
- Attach the payment method to the payment intent (not sure how to do this with the different types of payment methods that id like to accept but seems like something I could figure out)
- Charge the payment method and collect funds in my stripe account - do not transfer to seller yet
- Webhook to ensure payment was successful
- Transfer funds minus my commission and Stripe fees to the sellers stripe account ready for their next payout - only once the booking is within 24 hours as we do not allow refunds after this time
TL;DR - Issue is getting the payment flow right using Stripes API for a more complex marketplace payment flow. For anyone kind enough to lend their time and expertise all I am chasing is a bullet point list of what API calls need to be made and when so that I can get my workflows right. Then also how to get Stripes web elements for custom payment flow working on my payments page as I’m not sure how to use the code that Stripe gives to place their elements on my Bubble application. I really don’t want to use any plugins if possible.
I’m probably overcomplicating it in my head but if I spend another hour reading through Stripe documentation my brain might turn to mush.
Many thank yous in advance for any help.