#soumya

1 messages ยท Page 1 of 1 (latest)

sand gardenBOT
wooden panther
#

๐Ÿ‘‹ happy to help

#

if the invoice is 0

#

please use this thread for your subsequent messages

#

will it be happening only for trail plans?
or in any other failure do we get it as null ?

#

will it be happening only for trail plans?
yes that's also possible, since trial will generate an invoice with a 0 amount

reef whale
#

How do we differentiate invoice.paid event generated by webhook whether it was a trail plan or paid plan do we have any differentiator?

wooden panther
reef whale
#

it has 2 values - subscription create,subscription cycle how does it differential it is a trail plan?

wooden panther
#

sorry my bad, I misunderstood your question

#

you need to look at the subscription and see if it's on trial or not

reef whale
#

it shows cancelled here

sand gardenBOT
midnight tangle
#

Can you help me understand the ask?

reef whale
#

How do we differentiate invoice.paid event generated by webhook whether it was a trail plan or paid plan do we have any differentiator?

#

am trying to get the status of subscription it says cancelled it should actually show trailing

midnight tangle
#

Well if a trial the amount_due would be zero and the items would likely have a description indicating a trial

reef whale
#

other than this is their any strong differentialtor?

midnight tangle
#

There's no specific field that says it's an invoice for a trial, no

reef whale
#

it is not the proper way ?

midnight tangle
#

Well that field is not on the Invoice object

#

Suppose you could use invoice.paid event and look up the Subscription separately

reef whale
#

the current floe is like this - create subscription using https://api.stripe.com/v1/subscriptions and it generated invoice for both paid and trail plans later we call payinvoice api - for trail plans it says already paid see we need to have a differentiator here to make sure no payment was done for trail plan how do we differenriate to have a generic floe?

midnight tangle
#

Why are you calling that endpoint? I would advise against that

reef whale
#

Then how do we we create a paid subscription?

#

Please suggest the flow

midnight tangle
#

/pay endpoint won't handle any scenarios where 3DS/auth is requested on a payment

reef whale
#

We are speaking about apis i want assistance in differentiating for creating stripe subsriptions for plans with trial period and without trail period

#

Please advise

midnight tangle
#

I understand, but calling the /pay endpoints is not recommended so just wanted to point that out

#

I think we've already told you all the way you can determine whether an Invoice was for a trial period or not

#

But equally it wouldn't matter if you weren't calling the /pay endpoint manually

reef whale
#

I think we've already told you all the way you can determine whether an Invoice was for a trial period or not - how do we determine am not clear on this ?

runic fog
#

Hey! Taking over for my colleague. Let me catch up.

#

for trail plans it says already paid see we need to have a differentiator
Can you share a sample requestId of this request ? in order to understand what call and on which invoice status you are making exactly ?

runic fog