#pbj
1 messages ยท Page 1 of 1 (latest)
Yeah the list subscriptions would be the way to go. However, if the end-goal is to limit 1 subscription per customer, I recommend keeping track of this in your database (using webhooks to update state)
@indigo belfry If I'm understanding you correctly:
- Keep a record of active sub ID in our own DB
- Use
listendpoint to get just that sub by ID?
Oh oddly, could search work here? If we know the customer and the status needs to be active?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No I mean listen for webhook events and just keep track of whether the customer has an active sub or not based on the events you receive: https://stripe.com/docs/billing/subscriptions/webhooks
If you go that route, you'll never need to list subscriptions with the api
ahhhh okay yea we plan on doing that. The current version we have is that we're transitioning off of a third party platform so we may have some existing folks and some brand new folks.
An issue we noticed is that some brand new folks were able to sign up without giving their CC info (not sure why but prepping anyways). So while they will be given access to our platform, we'd still need to know if they are active and which sub, if any.
there is a chance i'm not following what you're saying, though!
Hello ๐
Taking over as codename_duchess needs to step away
thank you @indigo belfry and @desert nimbus for your assistance!
NP! ๐ let me know if you have any follow ups
For sure!