#peter_subscription-product-data

1 messages · Page 1 of 1 (latest)

vivid tendonBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1253776759208280246

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

woeful ibex
#

Hi 👋

Sorry so the issue is that you can modify the Product that you created so you can change the Subscription?

#

Also it would help if you listed which requests mapped to what you were trying to do

marble ledge
#

I’m just seeing that products are created in a privileged way in stripe.checkout.Session.create and if I want to modify a subscription, I can no longer create products in the same way

#

*if I want to modify a subscription via stripe.Subscription.modify

woeful ibex
#

Yes that is expected.

marble ledge
#

req_2WnBZetgWv3lHC = product I created manually (prod_QKrbjHPOz8rTwU)
req_3UfqrrPfqsbcXz = marking the product inactive

req_O9FFp6GTmIjL4y = test to see if I can still edit that product's metadata (yes I can)
req_XLXfEyKDdzrWvU = test to see if I can edit a product that was created via product_data from a checkout (no I can't)

#

My initial thought was that I could just use product_data in stripe.Subscription.modify, but I see that’s not supported

woeful ibex
#

Correct

marble ledge
#

So, only products created by stripe in the checkout can be “locked” in this way?

woeful ibex
#

Correct

marble ledge
#

(a roundabout thing here is that it’s on a stripe Standard account, and I’d like for it to not be editable, but I’m seeing that’s not an option)

#

*Stripe Standard Connect account

woeful ibex
#

No, a Standard Account has full control over objects stored on their account

marble ledge
#

*except for products created via product_data during checkout ;P

woeful ibex
#

But that would be true of your own account as well

marble ledge
#

ya that’s fine, it just seemed the immutable state was useful

woeful ibex
#

Checkout's integration of Subscriptions included some novel behavior that has not been replicated or back-ported.

#

But I can raise that as a feature request

marble ledge
#

Thx for clarifying things! Yeah the feature request would be for stripe.Subscription.modify to allow for product_data in place of product for items

woeful ibex
#

Okay. I found an existing feature request for this and added your example to it. I cannot say whether or not it will be selected for development (or when) but you can write in to Support to ask that you are kept informed about the feature.

https://support.stripe.com/contact

marble ledge
#

Thx!

woeful ibex
#

Happy to help 🙂

vivid tendonBOT