#humblegawwwd
1 messages · Page 1 of 1 (latest)
Hello 👋
Not sure I fully understand the usecase but if you're only looking for the subscription for a customer then we have a List Subscription API endpoint where you can pass customer ID as parameter and retrieve the total subscriptions they have
https://stripe.com/docs/api/subscriptions/list
@last prawn Is there a way to use payment links to have a UI where a user can not just pay for a subscription but also cancel current ones and manage their quantity
No, PaymentLinks use Stripe Checkout for payment flow. Checkout doesn't support cancelling the subs.
Customer portal is what you're looking for if you want to enable customers to manage their subs
https://stripe.com/docs/customer-management
Ahhh, this is awesome thank you very much
@light flax that is very helpful. While I've got you, is the main event I'm interested in for synchronizing the amount of customer subscriptions in stripe and my app the customer.subscription.updated event?
It seems like I shouldn't need the other ones for anything, or am I missing something?
Correct. AFAIK you only need that one.
However, I"d recommend reading through this doc which covers webhook events for subscriptions.
https://stripe.com/docs/billing/subscriptions/webhooks
This should provide enough context on which webhook events you might need