#thekents

1 messages · Page 1 of 1 (latest)

dawn fogBOT
chilly sky
#

The price is stored in Redux, therefore not mutable by client

last cargo
#

Hello

#

You can't create Prices in the frontend

#

That's not possible

chilly sky
#

I meant that the product price is stored in Redux state, frontend has a function that creates price_data object

#

price_data has unit_amount value, so i assume it should be safe to have unit_amount set straight from Redux state

last cargo
#

Yeah that should be fine

#

Mostly you want to have validation on your backend when you actually go to create the Price

#

To ensure no one tinkered with the details you are passing from your frontend

chilly sky
#

Yup, thats right, thanks for your help 🙂

last cargo
#

Sure thing