#peter_subscription-product-data
1 messages · Page 1 of 1 (latest)
👋 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.
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
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
Yes that is expected.
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
Correct
So, only products created by stripe in the checkout can be “locked” in this way?
Correct
(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
No, a Standard Account has full control over objects stored on their account
*except for products created via product_data during checkout ;P
But that would be true of your own account as well
ya that’s fine, it just seemed the immutable state was useful
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
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
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.
Thx!
Happy to help 🙂