#0xwess
1 messages · Page 1 of 1 (latest)
hi, the only option is to use a different Product prod_xxx instead, unfortunately.
got you, then this has to be generated on the server side, as my users are themselves adding pictures to be purchased in a physical form, whats the api to create the on the fly before generating a new session?
thanks @wraith marlin
so the steps would be on the server side:
- create new product via api
- create new session, and reference that product?
Also saw this api:
line_items: [
{
// price: process.env.PRICE,
price_data: {
currency: 'usd',
unit_amount: 1000,
product_data: {
name: 'Product name ...',
images: [
'https://picsum.photos/280/320?random=4',
'https://picsum.photos/280/320?random=2',
],
},
},```
would that do the above steps all at once? in a single callr?