Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Masamah's avatar

Redirect user to payment Gateway url

Halo Everyone! the following is the code am having that is giving status:200.

$response = curl_exec($curl); curl_close($curl); $newsData = json_decode($response); if (isset($newsData->paymentRequestId) && $newsData->paymentRequestId !== '' ) { // dd($newsData->url); return redirect($newsData->url); }

the issue is am having a problem with redirecting users to payment gateway afterwards.

0 likes
2 replies
jlrdw's avatar

Your payment gateway should have the exact instructions to follow.

1 like
Masamah's avatar

The devs are just completely failing as well but thanks anyway

Please or to participate in this conversation.