#jaym - prorations
1 messages · Page 1 of 1 (latest)
Thank you
looking at the full response, it looks like its putting the new item in twice, once prorated and then again in full cost
Interesting. I will work on reproducing that. Can you try again but with the more standard upgrade form of modifying the existing subscription item?
Like in our docs we typically show replacing the price ID of the existing item
items := []*stripe.SubscriptionItemsParams{
{
ID: stripe.String(subscription.Items.Data[0].ID),
Price: stripe.String("price_CBb6IXqvTLXp3f"), // Switch to new price
},
}
yea, let me try that
i think what might be happening is that its showing me the next payment will be in a month, and it will charge the remaining of this billing cycle + a new one for the next billing cycle
same result if i update the existing subscription item: req_OzmM8RNPuoqhrg
i think i needed this:
SubscriptionProrationBehavior: stripe.String(string(stripe.SubscriptionProrationBehaviorAlwaysInvoice)),
Yes, that makes more sense and yes that would be the parameter for if you want to charge for the proration noww
Of course. You may also want to check out our pending updates doc if you have not already. https://stripe.com/docs/billing/subscriptions/pending-updates#update-subscription
If you want to not upgrade until they have made the payment