#Iwebu

1 messages ยท Page 1 of 1 (latest)

pastel wraithBOT
willow grail
#

Hi there, I'm happy to help but I only speak English. Can you rephrase your question in English?

signal verge
#

Some customers fall on an error page while others do not! I can not reproduce this error myself.

willow grail
#

Can you past the error message on this chat? The image is small and I can't read the text

signal verge
#

can you read now ?

#

I can not reproduce this error on my side but some customers yes

willow grail
#

OK, can you paste the request ID (i.e., req_xxx) here?

signal verge
#

where can i find this ID ?

willow grail
#

It's in the screenshot that you pasted earlier, can you do a ctrl +F and search req_, copy the full request ID and share it here?

signal verge
#

req_KOnXkNdWEa3Csd

willow grail
signal verge
#

ok, so how can i fix it ?

willow grail
#

Pass a unit_amount or unit_amount_decimal to price_data when creating a checkout session

signal verge
#

you can see the unit_amout here ...

#

why it is not a problem for every order ?

#

can i use $_GET method ?

willow grail
#

There's a possibility that $_SESSION['montant_cmd'] return empty data

signal verge
#

or $_POST ...

willow grail
#

Also I don't suggest you to get the amount from $_SESSION, $_POST or $_GET. If I were a bad customer, I'd just manipulate the amount

signal verge
#

so how can i get the amout ? What do you suggest ?

willow grail
signal verge
#

is it possible in PHP ?

willow grail
signal verge
#

sorry but i don't see where price ID is create

willow grail
signal verge
#

There are several products in my cart, so I have to create a price per product?!

#

And the creation of this price must be done on the checkout page before passing the info to Stripe?

willow grail
#

It's the same as what you do before through the price_data. The difference here is that the price you created through Prices API can be reused.

signal verge
#

So in the same file I must create the price with the information received in the SESSION?

#

sorry ... i don't understand ๐Ÿ˜ฆ