#chimpTerminal
1 messages · Page 1 of 1 (latest)
Hello, this is a server for coding questions. Are you coding to our API at the moment?
For overall business questions you can reach out to our support team https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yes im coding
im selling a software thats hosted on my web app. I want to sell to law offices a package so their employees can access the software. Can you guide me to the write docs what explain how to do this. i assume quantity of sale, but how do i grant access to employee accounts.
Are you asking how to tell that one of your payments has completed successfully?
If so can you tell me how you are taking these payments? Are you using one of our hosted Checkout pages or your own custom page or something else?
yes im using a price table with webhooks
but for example
if a law firm owner purchases a plan from me that includes 10 licenses for their employees. How does stripe handle this, does it create 10 new customers or does it happen differently?
because i need to link the accounts they create on my webapp with the valid licenses bought through stripe
No it would just create one customer.
Our docs show what events to listen for to get info on your checkout session completing https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-post-payment
ok so if someone buys 11 of these
how do i asign each unit to a user on my webapp?
Hi 👋
When the customer completes the purchase it will fire a checkout.session.completed webhook event: https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
This will contain the Checkout Session object with information on the Customer as well as what they ordered.
ok great so if a user orders 10 there will be 10 keys i can distribute to users that do not have stripe accounts?
I"m not sure what you mean. Why would the customers need to have Stripe accounts? Aren't the key something internal to your integration?
i have a chatbot and i want to sell access to firms ok. so when the firm buys a subscription they will purchase a certain amount of desks for their employees to use.
so the problem is 1 account buys all the plans from stripe, ok. and i dont know how i take for example 10 desks and distribute that access to their employees on my webapp.
does stripe give a unique key for each plan if a customer purchases 10
No, there would only be 1 customer since the checkout process occurs 1 time
On Stripe's end
you would need to capture those details yourself
ok so i would
capture that a customer has purchased 10 units of software access. then create 10 unique ids and create a UI that the employees can create and account on my webapp and then enter the uniqe id to get access?
are you 100% stripe does not already do this through an event?
100%. The event just notifies you of the payment
It assigns the purchase to the Customer record created but that is 1 Customer record for N number of licenses. 1 email. It's up to you to manage your customers
ok thanks so i can webhook the info about the quantity purchased