The simulation of the php form?

Hi. I would like to use paypal, but I don't like where the data is stored in hidden input. I decided to try to make a post request through the server (without a client), but there's a problem: I can't do a redirect to the page request.

So I'm sending a post from the server, but how will I go with him on the request page?
$params = [
 'cmd' => '_xclick',
 'business' => 'sb-hai44717344@business.example.com',
 'item_name' => 'balance',
 'item_number' => $_SESSION['User']['Login'],
 'currency_code' => 'RUB',
 'amount' => $_POST['amount'],
 'cancel_return' => '#######/payments/cancel_return',
 'return' => '#######/profile/' . $_SESSION['User']['Login'],
 'notify_url' => '#######/payments/ipn'
];

 $myCurl = curl_init();
 curl_setopt_array($myCurl, array(
 CURLOPT_URL => 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr',
 //For real people
 //CURLOPT_URL => 'https://www.paypal.com/cgi-bin/webscr',
 CURLOPT_RETURNTRANSFER => true,
 CURLOPT_POST => true,
 CURLOPT_POSTFIELDS => http_build_query($params)
));
 $response = curl_exec($myCurl);
 curl_close($myCurl);
April 3rd 20 at 17:17
1 answer
April 3rd 20 at 17:19
Does
And you can somehow otherwise solve this problem? - terry.Kessler commented on April 3rd 20 at 17:22
@terry.Kessler, which you yourself invented? - mckayla commented on April 3rd 20 at 17:25
@mckayla, ??? - terry.Kessler commented on April 3rd 20 at 17:28

Find more questions by tags PHPHTMLPayPal