#gj
1 messages · Page 1 of 1 (latest)
I'm pretty sure that the default price Id is listed when looking up the product
Hello! You would need to check the id for the one that matches the default_price on the Product in question: https://stripe.com/docs/api/products/object#product_object-default_price
I have some existing code that looks for a key called "default" in the metadata of the prices
I'm trying to determine if it is a bug or if that was working at some point.
Metadata is arbitrary and entirely up to you. Stripe doesn't use metadata for anything, or set it in a scenario like this.
You can certainly add some metadata to a Price when you make it the default, but that would be something your code would do on your end, not something Stripe would do.