#frisbee - Checkout

1 messages · Page 1 of 1 (latest)

spice gyro
#

Hi 👋

unreal cave
#

hello

spice gyro
#

I do not think there is any explicit limit to the number of products on your account.

#

The only concern there is how manageable the every growing list of products becomes

unreal cave
#

I could be wrong, but they don't see to appear in the "available products" nor the "archived products" listings on stripe's dashboard. Do know what list they may appear in?

spice gyro
#

Hmmm... let me test that out

#

I notice in our API ref doc it says we will create a Price record but it does not specifically say providing product_data will create a new product.

#

After some additional testing I do not think this associates either a new Price or Product with your account

unreal cave
#

If I understand you correctly, the Price and Products are only tied to a PaymentIntent object which is then tied to our account but the Price and Products itself are NOT tied to our account. Is this correct?

spice gyro
#

I just tested on my account and neither the price, nor the product are returned when I query my Price and Product lists via the API

unreal cave
#

Question about metadata and stripe checkout:
I put in some metadata into my line_items with stripe checkout and successfully pay.
But when I call Stripe::Checkout::Session.list_line_items and go through the data, the metadata property nested under price is empty. Is it suppose to always be empty? If so, what's the best way for me to parse through the line_item to grab the metadata?

spice gyro
unreal cave
#

Question about metadata and stripe checkout:
I put in some metadata into my line_items with stripe checkout and successfully pay.
But when I call Stripe::Checkout::Session.list_line_items and go through the data, the metadata property nested under price is empty. Is it suppose to always be empty? If so, what's the best way for me to parse through the line_item to grab the metadata?

spice gyro
#

Request ID?

#

It'll help me investigate

unreal cave
#

hrm... i wonder if it's this one
req_6vA0dkj1Qgpz9L

spice gyro
#

It's a request to create a Checkout session that does have product data with metadata.

unreal cave
#

i think what i gave you was the Checkout session. But i think you wanted to see the request ID of my Stripe::Checkout::Session.list_line_items call?

#

I think it might be req_fZwpgKsok0a5yX since it was the last request in the logs whenever i call Stripe::Checkout::Session.list_line_items

covert zinc
#

@unreal cave what exactly is confusing you? What metadata do you set that you then expect to see back but don't see?

#

for example the request you mentioned set metadata not on the LineItem but on the Product associated with the Price that you create ad-hoc. So the metadata lives on the Product not the LineItem

#

so when you list line items, you see price: 'price_123' that's it. To see the product's metadata you have to use the Expand feature

#

Let me know if that doesn't make sense

unreal cave
#

Ah, I see what you mean!
I had attached the metadata to the product while wondering why the metadata in the price object was always empty