#RamiTheLiberator-checkout
1 messages · Page 1 of 1 (latest)
Wouldn't that require a set up Price or Plan in the dashboard? Or would I be using price_data which would allow me to put any custom price? line_items.priceREQUIRED CONDITIONALLYThe ID of the Price or Plan object. One of price or price_data is required.line_items.price_dataREQUIRED CONDITIONALLYData used to generate a new Price object inline. One of price or price_data is required.
price_data lets you create a price inline
i.e. you pass the unit_amount and currency(from your JSON file) and that's what's used for the line item in the CheckoutSession
I'd give it a try in test mode
ok perfect thanks!
What if I don't want to add a new price? The reason why I wouldn't want to do that is because there would be lots of duplicate products
this is the only option really