#Qualle
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Are they seeing an error on the first try? Can you share an example?
from the team:
"When we upgrade the plan for the first time after creating a subscription plan we are not getting the invoice. When we again upgrade the same subscription then the invoice is generated"
Do you have the ID of a subscription that you updated like this?
It sounds like you may need to change your proration_behavior to always_invoice https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That parameter tells Stripe to attempt to charge for the upgrade immediately
It sounds like now your code is either not including that param the first time, or it is doing something where you don't pass some invoicing threshold until the second time