#anant2712

1 messages · Page 1 of 1 (latest)

static elkBOT
thorn cipher
#

Are you asking if you can create a new subscription for the same customer?

worldly thicket
#

Kind off
As I have created the product so I don't want to recreate it again and again

#

This is my structure
Product created
|_____ A recurring plan created
|________ Customer attached to this plan (and getting charged on a daily basis, don't worry its in testing phase)a

#

Now My admin want to change the plan price (lets say previously it $1 per day and now he want to take $2 per day)

#

But the current plan price cannot be change
So I want to create a new price plan under same product (which I will do easly)
The issue is How can I switch my customers from oler price plan to newer price plan?

thorn cipher
worldly thicket
#

No its not helpful as I cannot deal in quantities

#

my admin can charge $2.5 too, its upto him

#

??

#

??

thorn cipher
worldly thicket
#

the first line under this heading is:
Subscriptions can be changed by switching the price that a customer is charged or by changing the quantity.

#

*Quantity

#

Please read carefully before suggesting

thorn cipher
#

I understand what I send, and this is suggestion based on what I know from your ask.

#

And it's entirely up to you whether to take my advice or not.

worldly thicket
#

Sorry, I don't want to be mean there.
My problem is admin can charge in decimals as well, so I cannot handle it by quantity

#

like today he is charging $1 per day but he wants to change now $2.5 per day. I cannot manage this 0.5 via quantity

#

Do stripe consider 1/2 quantity? I am sure its not

thorn cipher
#

I see

#

Thanks for the clarificaiton, one sec

#

Can you explain more about your new pricing model and why you can't create a price with unit price of $2.5?

worldly thicket
#

I can create a plan a with $2.5 price for the same product
But how can I shift my older plan user to this new plan?

thorn cipher
worldly thicket
thorn cipher
#

I'd suggest you to read throught the doc that I sent and try it out yourself.

#

Come back when you have a more specific question.

worldly thicket
#

I have already read that
the thing is if I create a new plan. How the recurring payment will come to know that charge the new price?

#

??

thorn cipher
#
stripe.subscriptions.update(subscription.id, {
  cancel_at_period_end: false,
  proration_behavior: 'create_prorations',
  items: [{
    id: subscription.items.data[0].id,
    price: 'price_CBb6IXqvTLXp3f',
  }]
});

have you run the code that suggested in the integration doc?

worldly thicket
#

I haven't as each customer for same subscription product will have different id and the above code will cancel the current subscription either immediately or at the end of the period and will refund portion of payment in case there and then price will be added (And I have no idea, this is new price or old price?)

static elkBOT
worldly thicket
#

Also I have shared with you the screenshot that I have created a product with a recurring price plan.
The above is also have items and I have no idea that these items actually refer to price plan or anything else?

thorn cipher
#

Ok. you need to update the each subscription that your customer has subscribed to the old price, and there's no batch API to update them all in one API request.

worldly thicket
#

and there's no batch API to update them all in one API request. : No concern here
let me clear:

I have a product with one price plan: $1 per day, 2 customers subscribed to it, and payment happening daily basis: this is already working

Now My admin wants to charge $2.5 per day from the customers.
I cannot change the older price plan as Stripe doesn't provide this facility

So I created a new price plan under the same product with $2.5 per day: this is also done

Question: still my customers are getting charged $1 per day not this new one. How can I charge this new price plan from the old customers who are still getting charged, $1 per day?

mighty juniper
#

Hey! Taking over for my colleague. Let me catch up.

worldly thicket
#

sure

#

I will join you shortly too

mighty juniper
#

and there's no batch API to update them all in one API request.
Nope.

worldly thicket
#

I have already mentioned that quantity based price change is not an option for me

#

As my admin want to chage $2.5 per day

#

0.5 cannot be managed via quantity