#劉豪傑-server-err
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hello 👋
can you elaborate on the error you're seeing?
劉豪傑-server-err
I tried
try {
$paymentIntent = $stripe->paymentIntents->retrieve(
$_GET['payment_intent'],
);
} catch (Exception $ex) {
//show error message
echo "<script>console.log('".$ex->getMessage()."');</script>";
}
but nothing is logged
You'd likely want to check your server log as it seems to be returning a 500
The issue isn't on the stripe end
is it possible belonging to the ssl issue?
It could be, what are you seeing in the response tab?
nothing
is response
this is our web page
we can make the payment normally and receive the amount in stripe
but the webpage is going to be like server error after redirecting to the return page when call $stripe->paymentIntents->retrieve(
$_GET['payment_intent'],
);
So the code on your return page seems to be breaking somewhere, the exception should show up in your PHP server log.
I mean do I need to make some special changes in production mode?
as it works perfectly in local
The only change I can think of would be to swap your API keys with live mode API keys