#djjazzy-checkout-error
1 messages ยท Page 1 of 1 (latest)
๐ sorry Discord is a bit busy but trying to understand your question
What is line_items: lineItems, // The price_id is now directly specified here
Like what's the exact value
djjazzy-checkout-error
No problem. Disregard the comment // The price_id ...
line_items is essentially undefined/empty for subscription mode since they won't be purchasing anything in this scenario. If the mode is payment then line_items is:
[{ price: priceId, quantity: 1 }] and things work properly.
line_items is always required, so it's forbidden to make it empty
what are you really trying to do? I didn't really get the uqestion before your entire code dump
I see. Sorry, I can see how this is confusing. I have a number of free products in my online shop I'd like to essentially route to a stripe checkout page with just the need for the user to enter their email - no payment info. Once they do, I'd like for stripe to register this as a success transaction for that product and call my webhook much like it does for my other paid products where I then add the product to my users dashboard.
But that picture is for a real Subscription with a $39/month Price and a free trial right? Sorry I still don't understand your problem
Yes, I just used this picture as an example from stripe's website. Ultimately I'd like for the stripe create checkout process to create a similar looking page but with a free product ($0.00/month) for an indefinite time. Apologies if this is a weird request.
So you need to create such a Price and then pass that Price id as a line item
you can't pass an empty line items list
O.k. - I have a price of $0.00 for 1 of my products, let me set that as the default for the product in question and see how that goes. Will keep you posted
Interesting. Adding a line_item for my free product got things further but not all the way. It just hangs on the checkout.stripe.com/c/pay/cs_live_..... page never fully loading.
Sorry missed your message
I can't really do anything with just a picture
You should have a lot more details: exact Checkout Session id, exact URL, error in the console, etc.
cc @clear pendant can you take that one over for me?
Can do
Understood.
No console errors.
here's the full checkout url:
https://checkout.stripe.com/c/pay/cs_live_a13jydNkdTe6NDeWa7InRCZqYHDK1h266G8TilELPV5auQ2PEYIx6gWZwd#fidkdWxOYHwnPyd1blppbHNgWjA0SDdKf2NBRE5XU0BtZGt1aF9zSFdqc19mczBzYENnbFdPPExtTmlJV0lQX2dHREZDbWxzYU5ja1VGSV1RUWtVQ1cxbDIzTlxGQGhETGZvU1FdTHZtcXZENTVVS0BLdTRjVScpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
That's really odd. It doesn't load for me either
And yeah, no console errors
Digging some more
Here's some additional info I see comparing a working checkout session creation vs a non working one. Non working is on the right side. FYI - the working version was a regular payment whereas the non working version is trying via the subscription route as seen earlier in the thread:
We're thinking this may be a bug on our end. We're escalating to the product team now, so hopefully we can get some answers. It may be a few minutes though, so we'll circle back in a bit
๐
@median horizon we're working on a fix, it seems to be a bug on our end
Great. Thanks for the update
Great! Your suggestions and help also guided me to the solution. Best regards...