#wangkele26gmailcom_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/1305724352477528146
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- wangkele26gmailcom_api, 10 hours ago, 3 messages
hello! I don't know off the top of my head, but you can try and see if it works
There is only a footer field in the document. I tried it and it worked. I didn't see a description field, so I couldn't pass a value.
I'm afraid there's no workaround for this right now if you're using Checkout Sessions then, like what my colleague said previously
If I create a subscription using other plans instead of Checkout Sessions, can I customize the contents of the bill?
somewhat, yes, but it's a "hack" / workaround, and I'm not entirely certain if you'll like how it works. To explain a bit more, essentially the workaround is to create a first invoice that only finalizes one hour later. In this way, you can edit the first invoice. There are two ways to go about this :
- Create your subscription with trial_end set a couple of seconds into the future. The subscription will first generate a $0 invoice, and once the trial is over a non-zero invoice will be created with a one hour draft period. The initial status of this subscription will be trialing and will transition to either active or past_due depending on the payment outcome.
- Create the subscription through a subscription schedule. When the schedule starts, the subscription’s initial status will be active with an initial draft invoice that is scheduled to finalize in an hour. Depending on whether payment of the initial invoice is successful or not, the subscription will either stay active or transition to past_due.
So there are problems with the above two workarounds, both of which will create a subscription that starts off with active
It sounds like implementing this using a short trial period is a good option. Is there any corresponding documentation available?
Additionally, I’d like to ask whether setting a short trial period is effective when creating subscriptions via Checkout Sessions.
we don't have any corresponding documentation other than what i described. iirc, Checkout Sessions has a minimum trial period and you can't set it a few seconds in the future.
https://docs.stripe.com/api/checkout/sessions/create
It seems that there are no fields related to delayed payment in this documentation.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i'm not sure i understand what you mean by delayed payment?
are you talking about setting a trial for the subscription when creating Checkout Sessions?
yes