#mink4501_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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.
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?
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).
for example if you want a "prepaid" subscription for 4 months, then create a Subscription with a 4 months price, and set cancel_at_period_end. This way the user is charged upfront once, and after the 4 months the subscription will cancel.
https://docs.stripe.com/api/subscriptions/create?lang=go#create_subscription-cancel_at_period_end
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.
no it's not possible. but you could make an extra API call, once the Subscription is created, to set cancel_at_period_end
I see thank you!