I am trying to verify pdt paypal information.
I created my layout form and submitted it. IT worked and also returned information.
I tried the same thing I made a curl request. But my request request is returned to me.
my breadboard form:
<form method="post" action="https://sandbox.paypal.com/cgi-bin/webscr"> <input type="hidden" name="cmd" value="_notify-synch"/> <input type="hidden" name="at" value="-----"/> <input type="hidden" name="tx" value="-----"/> <input type="submit" value="Test"/> </form>
My CURL REQ Code:
$arrData = array( 'tx' => '----', 'cmd' => '_notify-synch', 'at' => '-----' ); $ch = curl_init( 'https://sandbox.paypal.com/cgi-bin/webscr' ); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1) ; curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $arrData); $strCurlResult = curl_exec($ch); curl_close( $ch ); return $strCurlResult;
EDIT:
Tracking tracking error ON, I found the following message:
SSL: certificate subject name 'www.sandbox.paypal.com' does not match target host name 'sandbox.paypal.com'
Koolkabin
source share