#scott_15200
1 messages · Page 1 of 1 (latest)
I've got a static website hosted on AWS. It's working great but I want to add Stripe for monthly subscribers. I have my account set up with Stripe with my one product listed. I also have the link to the Stripe-hosted payment page. I'm just unsure of how I check for paid-up subscribers? Also, I hope I don't have to set up individual customers do I? Don't they just get added to the customer list whey they pay?
Hey there
When you say "Stripe-hosted payment page" you mean Stripe Checkout, correct?
correct
And when you say "paid-up subscribers" you mean those folks who have successfully renewed the Subscription for payments after the initial payment?
correct
My question is general. I'm just wondering if its possible for me to query my account through the API for a list of current (paid-up) customers. I don't need detail on the customer, just their subscription status.
I'm low volume (100-200 customers)
I have an app that runs hourly on a linux server at home, then uploads taylored data to a website on AWS.
I have not monitized it yet, but I would like to. I feel I am 3/4 of the way there with Stripe, but not sure about how I check for current subscribers. I assume it is through the API (json response?)
Yep what you really want to do is use a webhook handler here
Are you familiar with webhooks?
not at all, but I can learn
tailored, not taylored. Ha!
I assume the webhook "pushes" the info to me?
I set up a "listener"?
Yep, you want to read: https://stripe.com/docs/webhooks
And then take a look at https://stripe.com/docs/billing/subscriptions/webhooks
Which will detail which Events you want to pay attention to
Thank you for that. I WILL look into it. However...
I don't need to be "real-time", I can check hourly or even daily. Is the webhook still the way you suggest, or can I just run the query from my server side on a periodic schedule?
You can poll the API if you want
To do that you would basically use https://stripe.com/docs/api/subscriptions/list
Where you list out your current Subscriptions and check the status of each one
That will tell you whether they are "paid-up" (if they are active) or if a payment failed (they move to past_due)
Again, I WILL look at webhooks, but I think polling hourly would be easier???
yes. perfect! That is more what I was wondering about.
May I ask another question?
Sure thing
When it comes to customers, please tell me that I don't have to set them up in my account manually? Can't they just be added automatically through the Stripe Check-out page???
Yep they will be automatically created via Checkout if you are using mode: subscription