#matrix-priceid-prices-checkout

1 messages · Page 1 of 1 (latest)

proper steppe
#

Hello đź‘‹
Just to make sure I have the full context, do you mean for the same item or two different items?

#

I mean to pass line_items.price AND line_items.price_data
Let's chat here @brisk jungle

#

I believe you should be able to use them together

twin smelt
#

Hello! Did you get this sorted out?

twin smelt
#

Can you see this thread?

brisk jungle
#

Hi. Yes I can

#

So it looks like I can pass both arguments right?

#

I am trying to find a solution for the following problem. A restaurant is selling pizza margherita for ÂŁ10 however they want to offer to add toppings at a price, for example add ham for ÂŁ2

#

I have a product for pizza margherita. What is the best way to manage this scenario with stripe?

twin smelt
#

Yeah, you should be able to use both.

#

Have you tried? Are you getting an error?

brisk jungle
#

Let’s assume I want 1 margherita and 1 margherita with ham. My idea was to pass the price Id of the margherita and a price data with amount 12 and product name “margherita with ham”

#

I have not tried yet. Just planning now

twin smelt
#

Yep, that should work fine.

brisk jungle
#

But every time I do this I will create a new product. So I will end up with lots of product created, all with same name. correct?

twin smelt
#

It will create a new Price, not a new Product (unless you also specify new Product information instead of using an existing one). The Prices created using price_data are different from a Price created for reuse. I recommend you give it a try and see how it works.