#viking-subscription-update
1 messages · Page 1 of 1 (latest)
viking-subscription-update
Hey @lunar pagoda ! The Subscription API is a bit quirky. When you pass items what it does is merge the new values with the existing one. So here you said "hey add Price B" and it says "cool you now have Price A and Price B"
what you need to do is explicitly switch the current SubscriptionItem from Price A to Price B
Items: []*stripe.SubscriptionItemsParams{
{
ID: stripe.String("si_123456"), // Id of the current SubscriptionItem
Price: stripe.String(priceID),
},
},
}```
you want something like ^