#binod-subscriptions

1 messages ยท Page 1 of 1 (latest)

prisma goblet
#

๐Ÿ‘‹ happy to help

#

how may I help you?

worthy escarp
#

Im confused about renewing the subscription

#

which API to use to renew existing subscription?

prisma goblet
#

what do you mean by renewing a subscription? subscriptions have cycles (iterations) and they automatically renew

worthy escarp
#

yeah, but if amount is not paid, it remains as incomplete_expired right?

#

??

#

how do I make it active?

prisma goblet
#

you'd have to create a new subscription unfortunately

#

Subscriptions with status incomplete_expired or canceled are terminal and can't be activated

worthy escarp
#

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*

prisma goblet
#

is your scenario based on a subscription that was expired or canceled?

worthy escarp
#

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)

prisma goblet
#

you mean if the subscription is still active, right?

worthy escarp
#

subscription could be active, past_due,expired

#

okay, so looks like upgrade and downgrade works with switching plans.

#

what about renewing past_due plans?

#

??

prisma goblet
#

I'm really sorry for the late replies, discord seems to be really busy this morning

worthy escarp
#

ok, im waiting

prisma goblet
#

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

worthy escarp
#

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

prisma goblet
#

if you're talking about subscriptions regardless of what the payment method is, the invoice.* events are the ones you should be using

worthy escarp
#

okay so invoice.paid is triggered both on Card and iDeal payment right?

prisma goblet
#

for subscriptions yes

worthy escarp
#

okay, one last question

#

are the prices charge automatically by stripe to the subscribed customer?

#

charged*

prisma goblet
#

I don't follow the question

worthy escarp
#

when subscription expires, does customer gets charge automatically?

prisma goblet
#

if the subscription expired there would be no charge after that

#

I really don't follow the question

worthy escarp
#

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

prisma goblet
#

if it's incomplete_expired nothing will happen to that subscription

#

if it's past_due yes you should manually pay it

#

AFAIK

worthy escarp
#

what the reason behind status incomplete_expired?

prisma goblet
worthy escarp
#

have to

prisma goblet
#

no, you could set a default payment method on the customer or the subscription and it will automatically renew

worthy escarp
#

okay, it can be set usin API?

prisma goblet
worthy escarp
#

okay, thank you for the help!

prisma goblet
#

let me know if you need any more help