#zoboomafoo0721
1 messages ยท Page 1 of 1 (latest)
Hey thanks for the quick response
So I want to charge my users a $30/month subscription
I have created the product but I don't know what's next
My tech stack is Python on the backend and React for the frontend
I want to build a POC so I can just use flask and vanilla html to start
Do I need webhooks?
I don't know the flow or where to get started
๐ Hopping in here as well - is this something you want to use Stripe's hosted UI (Checkout) for or d you want to build your own UI?
Easiest thing would be to use Checkout if you want to build somethign quick
Stripe UI is fine
๐ then I'd recommend starting with this guide: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
actually there's a better one since you're doing subscriptions - one minute
Aha! Yup this is what you'll want: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
How do we pass the customer to it ?
How do we link it to a customer on our system?
Are you able to jump on a quick call with me? I usually know how to work with APIs pretty easily but I'm feeling pretty stupid right now
#sadge
We don't offer calls here (you can try https://support.stripe.com/contact since they have a callback option) but I'm also happy to keep chatting here
You can create a Customer through our API (https://stripe.com/docs/api/customers/create) using the information you have in your own systems, and once you've created that Customer you can pass that ID through when you create the Checkout Session (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer)
What are the step by step way
for example
Step 1: Create a customer id
step 2: create a checkout session with a customer id
step 3: have a webhook to listen for a successful checkout
Yup that would be the general idea
then its a different flow for the customer portal
for that you send the customer id with that session
do I need a webhook for that?
Well I'd focus on getting just Checkout to work first before moving on to customer portal (you don't have to use customer portal if you don't need it)
and you may need a webhook for that if you want to listen for subscription updates other changes that they can make through the portal
I'd prefer a way for them to manage the cards and history of invoices