#b33fbon3yt-subscription
1 messages · Page 1 of 1 (latest)
hi there. Stripe does not have user management API for you to create user logins etc. You will manage your user login in your own application and DB instead
Oh ok. I once heard about using my login buttons for this. When you click on the login button, it looks to see if the user already has a subscription. If yes: Login will be executed. If no: User has to register. Is this possible?
I would imagine you call Stripe API to create customer and subscriptions; then upon completion, you create your own user record withlogins and you would map your user with the subscription and customer record in Stripe
by my login buttons , what are you referring to here ?
I thought about redirecting the User to authO Universal Login. But I think the user can register himself there. Because of That I would redirect the user to my own login page. The user can enter his email and password there and Login. AuthO API Checks, of the user exists. If not, the user will be redirected to the subscription page.
I checked the universal Login page from auth0 now. There is a way to sign up. So I redirect the user to my login page.
When the user created the subscription over the payment page (from Stripe) how I going to get the data For the login page?
Do you have your own OAuth provider? Stripe does not provide such capabilities for you OAuth using Stripe API.
But regardless if you are creating login using OAuth or you are managing your own user logins, Stripe will just offer customer creation and payment processing.
I mean just like your site could offer Google Login or Facebook login as the oAuth provider, this could happen without using Stripe
Not my own, no. I using this: https://auth0.com/de?utm_source=google&utm_medium=cpc&utm_term=-g-auth0&pm=true&utm_campaign=dach-de-ger-brand-auth0&gclid=CjwKCAjwhaaKBhBcEiwA8acsHIE42AelGhJ4oWrn1_AAqt1RSdQ2pNbDA2hJiZmm53eEUt39T-MBthoCyTIQAvD_BwE
If I just have the login, is easy, yes. But if the user is logged in, he can see payed videos. The cuStomer needs to pay for it. Because Of that I thought it’s a Good idea to give the user only the Option to login of he created a subscription .
But how do you know the user has a subscription? by email by phone number?
By Email. The user want to Login with Email and password.
yup, so you will be using email to check if they have subscriptions
so what you want to do is this?
use email to check Stripe API to see if it has subscription -> if there is -> login using oAuth -> view video
well, it is possible, but your system will be super risky.
as any one having the email will be able to query your system to see if there is existing subscriptions.
Oh. I thought that only a request is made to the Stripe API, with the particular email and only if something is present does the Stripe api return me a "true" or "false"?
I mean anyone with the email, say I have your email or guess your email, I can go to your system and see if you have a subscription. I don't think your customer will love that idea for privacy and security reasons
what you should do is
user login using oAuth -> use email associated with the login to check Stripe API to see if it has subscription -> if there is -> view video
Hm thats true. Such a thing is possible everywhere, isn't it? For example, if I enter an email at Amazon, then I also see whether the person has an account there or not? It is then secured, as with our system, by the password?
Thats a Great idea 😮
If the user have no login. Where do he get it?
Ok. Could the user enter their email on the subscription page?
yes, they still can and you can also prefill the email if you know about their email
Oh thats nice. I Need to enter the email (if I know it) into the payment Link?
hmm, are you using payment links https://stripe.com/docs/payments/payment-links ?
Yes these subscription links
no, there is limited customisation on payment links and you cannot add email to it; and you can only create the link manually from Stripe dashboard which might not fit your user case.
you will have to use the API to build the logic yourself which you might need to work with a developer to do taht
Ok. Than I going to try my best. thanks For your fast help! Wish you a nice day 🙂