#Vatsal

1 messages · Page 1 of 1 (latest)

plucky sableBOT
gray umbra
twin cipher
gray umbra
#

I have tried from that doc

twin cipher
#

Ok, and are you seeing an error?

gray umbra
#

facing this error

#

which one should be imported

twin cipher
#

Which version of stripe-dotnet are you using?

twin cipher
gray umbra
#

okay I previously I imported billing portal. maybe error was because of that

#

thank you for the help

twin cipher
#

np

gray umbra
#

that response should be under async ?

#

or not required to do it

twin cipher
#

Depends, do you have other logic that depends on the response? If so you likely wait to make it async and await the response yes

gray umbra
#

one more query is that,

can I get the subscription duration in response, as currently I am not able to get that duration

#

currently this pricing model is being used

#

and after successful payment I am redirecting it to my website with a session ID

gray umbra
#

session response

#

if user has chosen 3 months subscription, how to get it from this session response

twin cipher
#

Why are you creating a session if you're using the pricing table?

gray umbra
gray umbra
#

what's the best way to combine with pricing-table

twin cipher
#

The pricing table takes care of the session creation – you don't need to create that.

twin cipher
gray umbra
#

I am retrieving that session in controller to store subscription duration and paid amount in my DB

twin cipher
#

But there's no guarantee that the session is event completed/paid when retrieving

#

It's better to rely on async webhooks for fulfilment

gray umbra
#

that would be possible with pricing-table ?

twin cipher
#

Would what be possible?

gray umbra
#

checkout.session.completed implementation

twin cipher
gray umbra
#

okay trying