Consider that I post my data to a payment gateway to process my payment. Then the payment gateway post me back some data to my receipt URL.
My URL: https://myurl.com/payment
PaymentGateway URL : https://paymentgateway.com/postdata
My Receipt URL: https://myurl.com/receipt
I tried to do this procedure using PHP CURL. So I created a piece of code to post my data to payment gateway’s URL and able to process a payment. But I couldnt able to read the post data that the payment gateway provider post me back. I am sure there will be a function in cURL to read the post data that the other server is sending me.
Is it possible? Can anyone please give me that function to read all the post data that the other server is sending me?
Hope this is not confusing. Please ask me if you need more explanation.
Thank you,
Karthik
To make a POST request, you give your cURL object an associative array of the values you’re submitting; so, access the values then.
If you need to persist them, maybe put them in $_SESSION which can then be retrieved on subsequent page requests.