Stripe

Updating Stripe Subscription Items

It looks like it’s possible to replace the items of a subscription while it’s in progress. This can be useful for upgrades, etc. The general technique is as follows: Take the existing subscription items. Compare with the desired subscription items based of the price ID: If the subscription item is new, create a new subscription item with quantity and price (and whatever else you need). If the subscription item already exists, then make note of the subscription item ID and update details as to what you need, like quantity If the subscription item should be deleted, set the deleted flag to true.

Continue reading →

Stripe: Product vs. Price

How to determine whether to create a new product for something, or a new price for an existing product for something? It looks like the way to do so is determine whether what your giving the customer will be different. If it would be, it probably should be a new product. If it’s not, it probably should be a new price of an existing product. Example would be monthly vs. yearly prices for a 10 GB cloud storage.

Continue reading →

Stripe Zero Decimal Currencies

List of Zero Decimal Currencies Stripe Supports

Continue reading →