#sreekanthmk-subscription

1 messages · Page 1 of 1 (latest)

prime hound
#

👋 Happy to help

jaunty mountain
#

Sure

#

req_O407N5tgh92WFS

#

there?

prime hound
#

Yes, I'm looking into the details

jaunty mountain
#

Okay. Thanks

prime hound
#

When creating a subscription, you've added price_1LRxu3SGtKVHB2p0dcQ91mSm in the Checkout Session: https://dashboard.stripe.com/test/logs/req_aYE3jD1pAaHt6Q

In req_O407N5tgh92WFS, you were trying to add the same price_1LRxu3SGtKVHB2p0dcQ91mSm into the same subscription, resulting in the error

#

Can you share what you want to achieve?

jaunty mountain
#

I want to delete price_1LRxu3SGtKVHB2p0dcQ91mSm and add another iitem

prime hound
jaunty mountain
#

I am trying to achieve this -> remove product associated with price_1LRxu3SGtKVHB2p0dcQ91mSm and add a different product

#

I am not trying to change price of same product

prime hound
#

It'll work the same for different product

jaunty mountain
#

How to update the quantity here?

prime hound
#

So, you'll retrieve the subscription item ID of price_1LRxu3SGtKVHB2p0dcQ91mSm in the subscription first, then update the subscription item ID with new price to price_1LRvlHSGtKVHB2p0y0Ib4VyI

#

You can add quantity to the item. For example,

'items' => [
    [
      'id' => $subscription->items->data[0]->id,
      'price' => 'price_1LRvlHSGtKVHB2p0y0Ib4VyI',
      'quantity': 2
    ],
],