#clement-pinchedez_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/1351839493346562049
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here is a screenshot of the invoice PDF
I would like to have the due date set to April 18 (the finalization date)
Hi, let me help you with this.
What's your business use case to finalizing the Invoices that late in the future?
Hello,
Sorry for the delay in my response.
Here is my use case.
We offer a 30d free plan for our new customer to test our tool.
During that 30d period, they can decide to upgrade to continue using the tool.
In the upgrade modal, they are asked to enter billing info (billing address + credit card) and that creates a Stripe customer and a Stripe payment method
We would like to customer to be charged only at the end of her free trial.
Hi there ๐ jumping in as my teammate needs to step away. Are you using our Subscriptions in your flow by chance? Because they offer the ability to start customers on free trials, and then have the Subscription automatically cancel if the customer doesn't have a payment method on record by the end of the trial period.
Hello Toby, no, we are not using Subscriptions
I think this is because we need to charge the customer on variable prices afterwards
Gotcha.
I can file feedback with our teams indicating that you'd be interested in seeing us allow you to set custom due dates in this case, but that wouldn't be a change that is made in the short term so I think you should explore alternative approaches.
One option that comes to mind, is to not use charge_automatically, so then you can set the due date.
ok, but in that case the customer will receive the invoice by mail and have to pay it, right?
I'm pretty sure if you set auto_advance to false, then the finalized Invoice won't be emailed to the customer:
https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
Then I believe you can make a request to pay the Invoice using their default or other saved payment method:
https://docs.stripe.com/api/invoices/pay
The request to pay will have to be done at the finalization date?
Yeah, that's when it would likely make the most sense to do it based on what I'm gathering about your flow. You could have a webhook endpoint listening for invoice.finalized Events that could trigger those payments.
Ok, thank you for the explanations !
I will try the option you suggest.
But I would definitely prefer having the possibility to set a custom due dates. Is there a way to track the implementation of this feature?