#bwestwood11

1 messages · Page 1 of 1 (latest)

brisk zodiacBOT
marble swan
restive pumice
#

Hi there, since you have already created a price, you can just do price: priceId

marble swan
#

would I keep the quantity?

restive pumice
#

Yes, you need to specify the quantity

marble swan
#

okay now I get an error saying missing required param line_items[0][currency]

#

can this be because maybe the priceId is undefined?

restive pumice
marble swan
#

in that snippet its showing that I am not putting price even though I am inside the line_items

restive pumice
#

Copy and paste the request ID here

marble swan
#

req_F3P9PIw9HMci4X

restive pumice
#

You didn't specify a price here.

#

The request should be sth like

line_items:[
  {
    price: 'YOUR_PRICE_ID',
    quantity: 1
  }
]
marble swan
#

that's what I did here and still getting an error. I am assuming the priceId is undefined or something

#

there is where I defined priceId on client side

restive pumice
#

Then you need to troubleshoot your code and make sure you pass a valid priceId when creating a checkout session.