I am trying to verify the paypal pdt information.
I generated my mockup form and submitted it. IT worked and returned the information too.
I tried the same thing making curl request. But my cur request is returning blank to me.
my mockup 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:
ON tracking curl error i found following message:
SSL: certificate subject name 'www.sandbox.paypal.com' does not match target host name 'sandbox.paypal.com'