#adityalystlocdeveloper_33428
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- adityalystlocdeveloper_33428, 1 hour ago, 23 messages
- adityalystlocdeveloper_33428, 1 day ago, 5 messages
- adityalystlocdeveloper_33428, 1 day ago, 19 messages
- adityalystlocdeveloper_33428, 2 days ago, 37 messages
- adityalystlocdeveloper_33428, 3 days ago, 21 messages
Have you tried the solution that my coworker alex shared with you earlier? You can set auto_advance of the invoice to true: https://stripe.com/docs/api/invoices/update#update_invoice-auto_advance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ya but in which event
You can listen to invoice.updated event that turns auto_advance: false, and set it to true again. For example: https://dashboard.stripe.com/test/events/evt_1OKfzZARWDrZZuifkZnsAbdS
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
case "invoice.updated":
console.log(eventdata);
if (!eventdata.auto_advance && eventdata.status === "draft") {
await stripe.invoices.update(eventdata.id, { auto_advance: true });
}
break; you mean this?