#devparry

1 messages · Page 1 of 1 (latest)

hallow crownBOT
uncut ravine
#

or share the code snippet?

wind tree
#

I use like this

#

same code work properly on my localhost + staging server

#

but we are getting this error on Production server

#

we also declare use at top of controller

use \Stripe\Customer;

uncut ravine
#

i believe this error should be where you're retrieving a Customer - i'd suggest that you refer to the full stacktrace and identify which line in your code the error is occurring, and then validate the value being passed in

wind tree
#

can i check this error in logs as well ?

#

under stripe dashboard ?

uncut ravine
#

probably not - this error probably occurs before the request is sent to Stripe i.e. the request can't even be sent to Stripe at all because of this issue

wind tree
#

This is my code which retrieve customer data
is this syntax is okay ?

uncut ravine
#

have you tried running that specific line of code? Also, try logging what is the value of $currentUser['stripe_customer_id']

wind tree
#

Actually, I have to check the database and need user login details so I have to wait for the login details.

uncut ravine
#

sure, feel free to reach out again if you still need help

wind tree
#

Hi Alex Is it possible if the product price not set as the default the we will get same error ?

#

as you can see here default price not set

uncut ravine
#

no, it shouldn't be because of that

wind tree
#

it's means this error message is only related to customer.