#b33fbon3yt-subscription

1 messages · Page 1 of 1 (latest)

mystic quest
#

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

ionic tree
#

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?

mystic quest
#

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 ?

ionic tree
#

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.

ionic tree
mystic quest
#

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

ionic tree
#

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 .

Auth0

Auth0 ist die Lösung, die Sie für Web-, Mobil-, IoT- und interne Anwendungen benötigen. Von Entwicklern geliebt und von Unternehmen vertraut.

mystic quest
#

But how do you know the user has a subscription? by email by phone number?

ionic tree
#

By Email. The user want to Login with Email and password.

mystic quest
#

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

ionic tree
#

Yes 🙌

#

Is this possible?

mystic quest
#

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.

ionic tree
mystic quest
#

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

ionic tree
ionic tree
mystic quest
#

they will need to register an account first

#

in Oauth

ionic tree
#

Ok. Could the user enter their email on the subscription page?

mystic quest
#

yes, they still can and you can also prefill the email if you know about their email

ionic tree
#

Oh thats nice. I Need to enter the email (if I know it) into the payment Link?

mystic quest
ionic tree
#

Yes these subscription links

mystic quest
#

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

ionic tree
#

Ok. Than I going to try my best. thanks For your fast help! Wish you a nice day 🙂