#Illes-checkout-error

1 messages · Page 1 of 1 (latest)

pure lotus
#

Hi there 👋 can you elaborate on what you mean by:

These are not printed in payment_init.php

Hm, that error seems to indicate that a value isn't being provided for the Product's name, are you setting $productName in your code?

silver glacier
#

The payment_init.php gets the parameters

#

if I print them, they show up, they are not null

#

here is the full code:

#

are u there?

chilly carbon
#

hi @silver glacier I'm catching up here but just to set expectations

#

this is troubleshooting you need to do in your code

#

so keep logging out what you're passing to the Create CheckoutSession endpoint, it logs there sure but I don't know what you're doing after that

silver glacier
#

inside this function:

#

if (!empty($request->createCheckoutSession)) {...}

#

printf-s are not working, they do not show anything

#

so $request is empty?

#

that is the conclusion?

chilly carbon
#

I don't know!
basically your code is making a request to Stripe and some params are missing

#

so I recommend pairing with a developer who can help you step through and debug your code

silver glacier
#

okay, thank you