#劉豪傑-server-err

1 messages · Page 1 of 1 (latest)

nocturne spearBOT
#

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.

supple wharf
#

Hello 👋
can you elaborate on the error you're seeing?

nocturne spearBOT
#

劉豪傑-server-err

sand halo
#

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

supple wharf
#

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

sand halo
#

is it possible belonging to the ssl issue?

supple wharf
#

It could be, what are you seeing in the response tab?

sand halo
#

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'],
);

supple wharf
#

So the code on your return page seems to be breaking somewhere, the exception should show up in your PHP server log.

sand halo
#

I mean do I need to make some special changes in production mode?

#

as it works perfectly in local

supple wharf
#

The only change I can think of would be to swap your API keys with live mode API keys

sand halo
#

is there any ssl requirement?

#

or domain

#

or something else