Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
Hi. I'm trying to write a wordpress plugin to contacting with a payment gateway. The gateway is an Iranian bank named Mellat.
First of all I have to send a request to their web-service and they respond me. There are 2 things in response, a string named $RefId and a status. If status be 0 it means every thing is ok and now I redirect customer and send $RefId to bank's gateway using POST method. And then they respond me if payment is ok or not.
I cant send $RefId with POST. How can I do this?
Point: I wrote another payment plugin for another bank named Parsian. The procedure is same but in that case I had to send data using GET method that was so easy. I used this piece of code to redirect using GET method:
The code I inserted, is for another bank that uses GET method. The code is right and works. Now, for another bank, I need to send my data using POST method. It only accepts POST method. How can I send data with POST method in php?
twinedev wrote:Look up cURL, which basically act like a web browsers that is all done via programming, so you can assign POST data to submit to a site.
-Greg
I'm not familiar with cURL. I have to send s.th like this: