#edward_api

1 messages ยท Page 1 of 1 (latest)

rustic cryptBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245664028588511242

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

north sigil
#

๐Ÿ‘‹ happy to help

#

we really don't recommend using setup intents

#

with subscriptions

fading knot
#

We have a 7 day free trail and I want to confirm card details before giving free trail
In this flow no payment is required from the user since first invoice is of zero

north sigil
#

yes you still can

#

using the pending_setup_intent

fading knot
#

We implement this flow and try
Thanks

north sigil
#

let me know if you need any more help

fading knot
#

Hi Thanks
This flow works great.

What is recommended way to handle payment failure for future invoices
like if payment fails for later months

also is there any flow for canceling subscription?

north sigil
fading knot
#

Can we collect card details for free trail also is there any flow for that?

north sigil
#

that's the flow I suggested first

#

for free trials

fading knot
#

got it had missed subscription_data.trial_period_days

north sigil
#

oh now I see what you mean, like how to create the subscription with trial days rather than how to collect the details

#

are you using Checkout Sessions?

normal mulchBOT
rustic cryptBOT
fading knot
#

I have a subscription with free trail created with stripe.checkout.sessions.create
there is no default payment here. Will this cause any issue?

white atlas
#

is the value of default_payment_method set on the Subscription object?

#

AFAIR that is what Checkout does(instead of seting the default on the customer level).

fading knot
#

these are things set
should I add anything extra?

white atlas
#

I wouldn't think so

#

is there a specific problem? did you check if default_payment_method is set on the Subscription object after using Checkout in this way to start a trial?