php error_reporting E_ALL E_NOTICE ch curl_init curl_setopt ch CURLOPT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
error_reporting(E_ALL & E_NOTICE);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//curl_setopt($ch, CURLOPT_URL, 'http://www.unicredit.ua/paycrimea/pay/');
curl_setopt($ch, CURLOPT_URL, 'https://3ds.unicredit.com.ua:4040/cgi-bin/cgi_link.exe');
//curl_setopt($ch, CURLOPT_POST, true);
/*curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
'CURRENCY' => 'UAH',
'ORDER' => '20140810165942',
'DESC' => 'My Pay',
'MERCH_NAME' => 'COOL',
'MERCHANT' => '20001117',
'TERMINAL' => '20001117',
'EMAIL' => 'my@cool.mail',
'TRTYPE' => '01',
'COUNTRY' => 'UA',
'TIMESTAMP' => '2014081014594',
'BACKREF' => 'http://www.unicredit.ua/paycrimea_res/payres/',
'PAYMENT_TEXT' => 'xuj',
'LANG' => 'ukr'
)));*/
echo curl_exec($ch);