#usama_sa

1 messages · Page 1 of 1 (latest)

cursive wraithBOT
dusty otter
#

Let's chat here

rugged coyote
#

Sure

#

Here is the scenario,

I'm working on a project were users subscribe to the application using 3 packages (this is done on a different application then where I'm adding a subscription update feature). Now on the 2nd application we allow the subscriber to select their usage limit, the system calculates the amount for new usage and we need to update their subscription package.

My question is what is the best approach for this, we can't update our basic subscription packages. So how do we update subscriptions for individual users on stripe without effecting other users subscribed to the same package.

I found 2 solutions...

  1. Create a new subscription package for users based on their new usage limit.
  2. Add multiple prices in the subscription package and assign them to the user based on their needs.

Which way is better from the stripes point of view, if you can offer a better approach let me know

#

We are using stripe connect as well as this is a multivendor web application.

cursive wraithBOT
dusty otter
#

Sorry things got busy, @uncut patrol will jump in and help you out in a sec.
Appreciate your patience

uncut patrol
#

Hello, is there a specific Stripe API variable that you are using to set this maximum? I am not seeing a way to set that in our docs at the moment

rugged coyote
#

Let me clarify things a bit more the main subscription is done on a different website created by another dev and I don't have the access to the codebase there. They are using a subscription api there

#

Now I need to add a subscription upgrade feature on my website where users can choose their usage variable, we calculate new prices and I hit stripe api to upgrade their subscription.

Now what is the best way to do that without changing the main package they subscribed to when they signed up. How do I change the subscription package price for 1 user without changing it for all other subscribed users

uncut patrol
#

Ah, so Prices in Stripe actually cannot have their amount updated and the pricing on subscriptions needs to be updated subscription by subscription. So here you would create a new Price object at the price that you want and then update the specific subscriptions that you want to with that new Price object

rugged coyote
#

So create a new price in the product and create a new subscription for the specific user, right?

uncut patrol
rugged coyote
#

I have checked this, but upgrading the subscription for 1 customer will not affect the subscription price for other users/customers right, it'll only change it for the specific user/customer?

uncut patrol
#

Correct, just the one subscription that you update. Other subscriptions, even other subscriptions on the same Customer, will not be affected

rugged coyote
#

Ok, the. I'll test it out and come back if I need more clarifications thank you

#

Much appreciated your help with this

rugged coyote
#

@uncut patrol can we also add new products with price in current subscription? If we add a new product how will stripe handle that new products charge if the customer paid for previous products in subscription?

uncut patrol
rugged coyote
#

That simplifies it further I can just add new products when customers choose the usage limit. That will not require us to update the subscription basic price