#ajay-subscriptions
1 messages · Page 1 of 1 (latest)
Hi! It looks like you should create 3 products (SMS, EMAIL, WHATSAPP), each with two prices (monthly and yearly).
If later you want to change your prices, you'll need to create new prices. And then update your customer's subscriptions to use the new prices with https://stripe.com/docs/api/subscriptions/update
do I need use all 3 products to update subscripion
eg SMS keep but change price, EMAIL remove and WHATSAPP add
in
https://stripe.com/docs/api/subscriptions/update#update_subscription-items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and for delete use key
https://stripe.com/docs/api/subscriptions/update#update_subscription-items-deleted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Exactly. You can see an example of how to change the price for one item of a subscription here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
And in your case you would pass multiple items.
I dont get from this
'id' => $subscription->items->data[0]->id,
what id is it?
is it subscription item id?
is it subscription item id?
Yes