#mink4501_api

1 messages ¡ Page 1 of 1 (latest)

high lanternBOT
#

👋 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/1308369217728413728

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

open briar
#

Hello.

How can I do a subscription in Stripe that is for a specific period of time and is non-renewing (Non-renewing subscription)?

Requirements

  • The subscription's status & expiresAt must exist, as it must be available for a specific period of time.
  • It must not be renewing.

This is like a prepaid subscription.

dreamy jackal
#

hi there!

#

It must not be renewing.
what does that mean exactly? can you share a concrete example? what's the difference between this and a one-time payment?

open briar
#

Hi

#

A product that is available for a specific period of time. The difference with a one-time payment seems to be the presence or absence of expiresAt, which indicates the status of the subscription and how long it will be available.

Google supports these features as a prepaid subscription.

Apple supports these features as non-renewing subscriptions (but does not support subscription status and expiration dates).

dreamy jackal
open briar
#

Oh thank you so much

#

Hi

#

When I create a Stripe subscription, I do so via the Checkout Session API.

Is it possible to have cancel_at_period_end set to true when calling the Create Checkout Session API?

Calling the Subscription Update API again after the subscription is created to change cancel_at_period_end to true would miss the transaction as it is not guaranteed.

dreamy jackal
#

no it's not possible. but you could make an extra API call, once the Subscription is created, to set cancel_at_period_end

open briar
#

I see thank you!