#byron1051

1 messages · Page 1 of 1 (latest)

obsidian pathBOT
cosmic folio
#

We don't provide an authentication layer like that unfortunately. You can definitely look up a customer and their subscriptions by email in the API, but we don't provide login logic outside of our hosted pages like the customer portal https://stripe.com/docs/no-code/customer-portal

Let your customers manage their own billing accounts with a portal that Stripe hosts.

#

API-wise, you can list customers by their email and then list subscriptions by that customer
https://stripe.com/docs/api/customers/list#list_customers-email
https://stripe.com/docs/api/subscriptions/list#list_subscriptions-customer

tight quest
#

Hey Pompey. Thank you for the response! I appreciate your time.

In theory, if I show the login page and a user enters their email address, I can use that and query Stripe for payment status.
If they aren't there (are not an existing customer), I can push them to the Stripe customer portal.

Doing this seems like it might augment some auth layer, no? Sure no session management but webhooks can effectively act as such. haha

cosmic folio
#

Unfortunately not, there aren't webhooks related to customer portal logins so there wouldn't be a way to check if a customer has logged in through the portal