#binod-subscriptions
1 messages ยท Page 1 of 1 (latest)
Im confused about renewing the subscription
which API to use to renew existing subscription?
what do you mean by renewing a subscription? subscriptions have cycles (iterations) and they automatically renew
yeah, but if amount is not paid, it remains as incomplete_expired right?
??
how do I make it active?
you'd have to create a new subscription unfortunately
Subscriptions with status incomplete_expired or canceled are terminal and can't be activated
what about past_due?
Let me give you my scenario, there are three plans A, B, and C. I subscribe with A, 1. when I have to switch to B, I delete A and then subscribe to B. 2. When I have to renew A, Also I delete A and create new subscription
Is this the right approach? Im confused about ths
this*
is your scenario based on a subscription that was expired or canceled?
A,B,Cs are basically plans. Im creating subscription with plan_id attached
Im confused, what APIs to use when I have to update existing subscription (say with plan A) and switch to different plan (say B)
you mean if the subscription is still active, right?
you could take a look at this guide https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
subscription could be active, past_due,expired
okay, so looks like upgrade and downgrade works with switching plans.
what about renewing past_due plans?
??
I'm really sorry for the late replies, discord seems to be really busy this morning
ok, im waiting
if it's incomplete_expired this means you have to create a new subscription
if it's active or past_due you use the guide I sent you earlier
okay, also I need to trigger webhooks
im using Card and Ideal payment, for Ideal payment, there is a invoice.paid webhook, similarly whats the webhook for Card payment?
I mean which webhook to listen on my app when card payment is being used
if you're talking about subscriptions regardless of what the payment method is, the invoice.* events are the ones you should be using
okay so invoice.paid is triggered both on Card and iDeal payment right?
for subscriptions yes
okay, one last question
are the prices charge automatically by stripe to the subscribed customer?
charged*
I don't follow the question
when subscription expires, does customer gets charge automatically?
if the subscription expired there would be no charge after that
I really don't follow the question
I mean, If I am subscribe to plan A, if that expires or goes past_due, do I need to manually pay again or stripe charges automatically?
because subscriptions are recurring payments
if it's incomplete_expired nothing will happen to that subscription
if it's past_due yes you should manually pay it
AFAIK
what the reason behind status incomplete_expired?
I don't understand, customers have pay manually each month to renew their subscription?
have to
no, you could set a default payment method on the customer or the subscription and it will automatically renew
okay, it can be set usin API?
yes https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method if you want to set it on the subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, thank you for the help!
let me know if you need any more help