#djjazzy-checkout-error

1 messages ยท Page 1 of 1 (latest)

rigid rivetBOT
elder haven
#

๐Ÿ‘‹ 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

median horizon
#

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.

elder haven
#

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

rigid rivetBOT
median horizon
#

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.

elder haven
#

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

median horizon
#

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.

elder haven
#

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

median horizon
#

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

median horizon
elder haven
#

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?

clear pendant
#

Can do

clear pendant
#

That's really odd. It doesn't load for me either

#

And yeah, no console errors

#

Digging some more

median horizon
#

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:

clear pendant
#

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
#

๐Ÿ‘

elder haven
#

@median horizon we're working on a fix, it seems to be a bug on our end

median horizon
#

Great. Thanks for the update

rigid rivetBOT
elder haven
#

@median horizon okay the issue is fixed

#

sorry for the trouble!

median horizon
#

Great! Your suggestions and help also guided me to the solution. Best regards...