#D4reDev1l.
1 messages · Page 1 of 1 (latest)
Hi, can you add more details here? You'd want to start here, https://stripe.com/docs/checkout/quickstart and https://stripe.com/docs/payments/quickstart to start accepting one time payments.
e.g.
I list a product on my page
previously I use stripe.order to support one time payment. Owner list the product and a cutomer buys it
And stripe.order is deprecated soon I think
You would build this on your end, and the use Stripe to pass in the final amount.
That is correct
yes this is what I am doing right now
I would like to ask
is stripe.order will be deprecated soon?
Yes it will be.
em
I'm closing the server now for the weekend if you do not have any immediate follow up questions. The server will be open again on Monday morning.
I want to know if stripe.order will be available in the next 2 years
If it does, which API should I use
I do not have this information but I recommend that you migrate as soon as you can.
I plan to migrate to stripe.subscription
Can I set start and end date in stripe.subscription API?
I do not understand this question, can you clarify please?
sure
I want to create a limit duration subscription
a defined start date and end date before I active the subscription?
You can specify a future date to cancel the subscription, https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at but you cannot directly start a subscription at a later start date. The work around is to offer a subscription trials, https://stripe.com/docs/billing/subscriptions/trials until the start date that is in the future.
I offer the trail before I activate the subscription
But I wish subscription will end automatically if I set a end date when I create the subscription with stripe.subscription.create()
Alternatively, you can also use Subscription Schedules here, https://stripe.com/docs/billing/subscriptions/subscription-schedules.
That is what cancel_at, https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at does.
You pass in a future date to cancel the Subscription.