#Munaim-subscriptions

1 messages ยท Page 1 of 1 (latest)

obtuse ermine
#

hi! what do you mean exactly by "latest subscription status"?

old widget
#

ok let me clear you a scenario

#

I have created a schedule subscription of customer and the schedule time is today and that schedule subscription was converted into subscription now how Can i know that schedule subscription has been converted into subscription successfully?

#

How Can i get the subscription which previously a schedule subscription of particular customer?

#

Do you understand what i want to say?

obtuse ermine
#

sure, I think so

#

how Can i know that schedule subscription has been converted into subscription successfully?
it fires a customer.subscription.created webhook event

old widget
#

I am not using web hook event

#

I have schedule subscription i d or customer id

obtuse ermine
#

you have to use webhooks to use Stripe Subscriptions, it's not optional

old widget
#

I am using stripe prebuilt page

#

Let me clear you a full problem

#

I Have a scenario.Suppose I have following package plans
Three months (One Time Payment):
Basic
Standard
Professional
One month Subscription ( Recurring )
Basic
Standard
Professional
Now i want to deduct payment for three monthly basic one time only and after deduction I have created schedule subscription for basic one month recurring.
Now Three months finished and that schedule subscription is now converted to subscription. I want this latest subscription of that customer.
Important Note:
I am using stripe prebuilt or hosted page for one time payment deduction.

obtuse ermine
#

cool!

#

I answered above how you do this really, it's via webhooks.

old widget
#

Dear Stripe has converted schedule subscription to subscription on it's end now I want to call stripe api for this subscription of particular customer.

#

Which api is useful for me for knowing latest subscription of that customer

obtuse ermine
#

we'll send you a webhook when we do that conversion! at which point you can update your own records.

old widget
#

I am creating a cron job for this task after this months this cron job run and update the record and in this cron job i want latest subscription of customer

obtuse ermine
#

ok! you should use webhooks but I guess I can't convince you.

old widget
#

How can I use web hook in cron job?

obtuse ermine
#

you wouldn't use a cron job at all

old widget
#

My scenario needs a cron job dear

obtuse ermine
#

like you are telling Stripe to schedule something in the future, and we do it for you, and then we tell you when it happened by sending you a webhook

old widget
#

Can I get the latest invoice of customer?

obtuse ermine
#

so it makes no sense to me to use a cron job, since Stripe is the one doing this, you just have to react to what changed

obtuse ermine
#

anyway I have to go! my colleague @limpid kayak can help if you have more questions.

old widget
#

ok

limpid kayak
#

@old widget Let me know if I can help!

old widget
#

Have you understand my scenario

#

?

limpid kayak
#

Just catching up ๐Ÿ™‚

old widget
#

Please understand

#

My Question is Can i get latest subscription of customer simple?

limpid kayak
#

You should pass the customer parameter, as long with a limit of 1 and also status to only get the active subscription

old widget
#

ok thanks