How to get the price id from the creation of a product (Product::create). #543
Unanswered
aarondyejr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all, I am here as the title says to inquire about the best practice to getting the product id. I noticed that there is a
default_price
field on the returned object that hasOption<Expandable<Price>>
as it's type. What i currently do isdefault_price.unwrap().as_object().unwrap().id
to get the PriceId. Now this definitely doesn't seem like the best way to do this, so if anyone can please send help my way!Beta Was this translation helpful? Give feedback.
All reactions