#bwestwood11
1 messages · Page 1 of 1 (latest)
Hi there, since you have already created a price, you can just do price: priceId
would I keep the quantity?
Yes, you need to specify the quantity
okay now I get an error saying missing required param line_items[0][currency]
can this be because maybe the priceId is undefined?
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
in that snippet its showing that I am not putting price even though I am inside the line_items
Copy and paste the request ID here
req_F3P9PIw9HMci4X
You didn't specify a price here.
The request should be sth like
line_items:[
{
price: 'YOUR_PRICE_ID',
quantity: 1
}
]
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
Then you need to troubleshoot your code and make sure you pass a valid priceId when creating a checkout session.