#krishna008

1 messages · Page 1 of 1 (latest)

grave stumpBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

crystal brook
#

Hi
You should compute that in your integration, there is no direct field for that

lime pulsar
#

How can I compute that?

crystal brook
#

You need to track that in your database for example

#

You calculate the number of previous invoices of a given Subscription and get the current cycle number

lime pulsar
#

That is difficult to maintain?

#

Is there any other way from response?

crystal brook
#

In the public API, no there is no direct access to that information

lime pulsar
#

I also don't want to hit some information in webhook for first time subscription payment.

#

I want to write condition that if subscritption payment cycle is 1st then don't run code.

crystal brook
#

You can write that code in your integration yes.

lime pulsar
#

Is there any way to check how many cycles are remaining?

crystal brook
#

No you need to track that in your database.

lime pulsar
#

That is also very difficult to track.

#

Stripe should provide that. Actually Razorpay provides it that is why client demands.

crystal brook
#

You have all the elements in the Stripe API to track that information back in your own database.

lime pulsar
#

But I have to write extra logic for that.

crystal brook
#

Yes.

lime pulsar
#

If it was provided by Stripe then my code execution time would have been reduced.

crystal brook
#

Currently that's not supported.