#kliti

1 messages · Page 1 of 1 (latest)

young dragonBOT
ripe coyote
#

hi! what's the question exactly?

hollow sedge
#

I have a saas business and I want to add a lifetime plan. I created a one time payment product on stripe dashboard but how can I add a 3 days trial in it?

ripe coyote
#

hmm, you can't, a one time payment is not a subscription/recurring payment so it doesn't have a trial period

#

not sure I follow exactly what you're looking for. Can you describe the customer experience(when do they sign up, when do they enter their card details, what do they pay, when do they pay it)?

hollow sedge
#

First they sign up to my website and login. After the login, they are redirected to the profile page, where I added a button that creates a checkout session to buy the one time product

ripe coyote
#

makes sense. And that's it? not other future payments?

hollow sedge
#

For the lifetime plan (which is a one time payment product) this is it. However, for the subscription, I have built to have a 3 days trial

#

For the one time product, I was thinking of using the setup mode, but I do not know how to set it up correctly.

ripe coyote
#

I don't really understand. Why is there a trial period for this one time lifetime plan?

hey are redirected to the profile page, where I added a button that creates a checkout session to buy the one time product
like do you want them to only enter their card information at that point, and get charged 3 days later? I don't understand it

hollow sedge
#

Yes

ripe coyote
#

that seems really weird to me, why not just charge them directly while they are there? why deal with the complexity and risk of declines/having to contact them again by waiting 3 days

#

there are a couple of ways to implement it anyway

hollow sedge
#

Okay, thank you, Let me check the 2 articles and see if I can implement them

#

I have 2 questions regarding the webhook:

  1. What events do I use in the webhook to make the client buy the product automatically after the trial period ends?
#
  1. Does Stripe calculates the trial period or do I have to create the trial period?
ripe coyote
#

the other way to do this is implement it as a subscription

#

like create a subscription normally, with subscription_data[trial_period_days] in the CheckoutSession API as usual. Then after the trial ends (invoice.paid event), you could do something like cancel the subscription or move it to a Price that is for $0.

#

there's no great option here that is not going to require some manual custom code, but there are possibilities!

hollow sedge
hollow sedge
ripe coyote
#

there is no event we send you after 3 days

#

we send you checkout.session.completed when "After the login, they are redirected to the profile page, where I added a button that creates a checkout session to buy the one time product", at the time they finish entering the details. After that, its' on you to build something in your system to remember to call our API in 3 days to charge the saved card

ripe coyote
hollow sedge
ivory solar
#

You can update the subscription to add/replace items in the subscription following events of your choosing, yes, but that won't affect the invoice that was already paid, it will affect future invoices.

hollow sedge
#

Okay, thank you for your help

#

But I did not understood the setup mode correctly.

ivory solar
#

Do you understand now or can I help with something else?

hollow sedge
#

I can create the checkout session with Setup Mode, and can I trigger the webhook manually and which event should I use for that?

ivory solar
#

You can use Checkout setup mode, yes, but this doesn't create a subscription, just a saved payment method.

You don't "trigger" webhooks in live mode, those are emitted when payments and other things happen to notify you. In test mode you can trigger test events to work on your integration.

Can you briefly explain the final flow you're trying to achieve? eg:
1/ Customer clicks "subscribe"
2/ Customer completes Checkout process
3/ Customer is in state...
4/ Customer does X...
5/ I want to change the subscription...

hollow sedge
#

I understood the subscribe method, but my question was for the Setup Mode on the One-Time Payment Product.

#

I can just build a cron system on my API, which after the customer registers to my website, and completes the checkout session with the Setup Mode, After 3 days the status on my API changes from trial to not-paid for example. And then after 3 days a button will be shown to buy the product and the status of the customer on my API is goind to change to paid.

ivory solar
#

my question was for the Setup Mode on the One-Time Payment Product.
To be very clear, there is no payment in mode=setup it only saved payment method details. You need to request any future payment or subscription creation, if needed.
status on my API changes from trial to not-paid for example
You referring to your own systems, not anything to do with Stripe? If so, sure, you can trigger your own systems any way you like.
after 3 days a button will be shown to buy the product
Again, if you mean in your system, sure.
the status of the customer on my API is goind to change to paid.
What is this referring to? Is this your own or something you are expecting in Stripe? You have created a subscription yet (that you mentioned) and Customers aren't "paid".

hollow sedge
#

For the cron I am referring to my own API.
I have a SaaS business and i am adding a New plan called Lifetime Plan which is a One-Time Payment Product. However in that plan I am adding a 3 days trial.

ivory solar
#

OK, as a concept in your system that's fine. And in that 3 day window your customers can options pay the one-time lifetime price?

hollow sedge
#

Yes

ivory solar
#

Ok, sure. So that' fine. And for a lifetime product like that I wouldn't use a subscription.

#

I'd do a one-time payment via payment intent, then record in my own system and the stripe customer metadata that the customer has paid for lifetime access

hollow sedge
#

Yes, I am going to do that, Thank you for your help