#byron1051
1 messages · Page 1 of 1 (latest)
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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