$ik_data = array();
$ik_data['ik_co_id'] = 'мой номер кассы';
$ik_data['ik_am'] = '0.01'; // сумма платежа
$ik_data['ik_inv_st'] = 'process';
$ik_data['ik_sing'] = '';
$ik_data['ik_int'] = 'json';
$get_string = http_build_query($ik_data, '', '&');
$interkassa_contents = file_get_contents("https://sci.interkassa.com/?{$get_string}");
$interkassa_contents = json_decode($interkassa_contents, true);
print_r($interkassa_contents);
[resultCode] => 107
[resultMsg] => Parameter "ik_pm_no" is empty
$ik_data = array();
$ik_data['ik_co_id'] = 'мой номер кассы';
$ik_data['ik_pm_no'] = '81';
$ik_data['ik_am'] = '0.01'; // сумма платежа
$ik_data['ik_pw_via'] = 'visa_liqpay_merchant_eur';
$ik_data['ik_desc'] = '';
$ik_data['ik_cur'] = 'eur';
$ik_data['ik_act'] = 'process';
$ik_data['ik_act'] = 'process';
$ik_data['ik_int'] = 'json';
foreach ($_POST as $key => $value) {
if (!preg_match('/ik_/', $key)) {
continue;
}
$data[$key] = $value;
}
...
$content->row[0]->exchangerate->attributes()->ccy
$url = 'https://api.privatbank.ua/p24api/pubinfo?exchange&coursid=5';
$content = simplexml_load_file($url);
echo '<pre>';
print_r($content->row[0]['ccy']);
print_r($content->row[0]->ccy);
print_r($content->row[0]->attributes());
print_r($content->row->attributes());
print_r($content->row->attributes('ccy'));
SimpleXMLElement Object
(
)
SimpleXMLElement Object
(
)
SimpleXMLElement Object
(
)
SimpleXMLElement Object
(
)
*4
$2034
id=383868;mt=0.5;tm=61480;pl=4;st=0;ai=385279;ar=0;an=ivanko22;pr=4131212;ft=1_1;end_time=0;,id=383867;mt=1;tm=61479;pl=4;st=0;ai=360834;ar=175;an=Nik Neym;pr=4212222;ft=1_1;end_time=0;,u2=19542|Sapojnik||26 896;u3=196415|FBI_||867;id=383884;mt=0.5;tm=61520;pl=4;st=0;ai=86572;ar=5 132;an=velikolepniy;pr=4211222;ft=1_1;end_time=0;,id=383883;mt=1;tm=61519;pl=4;st=;ai=242629;ar=26 360;an=AP7707;pr=4221122;ft=3_20000;end_time=0;,id=383853;mt=0.75;tm=61452;pl=2;st=2;ai=384860;ar=52;an=гаер;pr=4111111;ft=1_1;end_time=0;,u2=254870|volkodav777||38 634;id=383856;mt=0.5;tm=61458;pl=4;st=;ai=30948;ar=170 498;an=ГОЛУБКА;pr=4221122;ft=2_1;end_time=0;,u2=155646|h0m4ik||5 794;id=383854;mt=1;tm=61455;pl=3;st=0;ai=234925;ar=5 766;an=x3m_Girl;pr=4111111;ft=1_1;end_time=0;,id=383817;mt=1;tm=61354;pl=2;st=0;ai=278638;ar=5 807;an=БОРЛАК 007;pr=4111111;ft=3_5600;end_time=0;,u2=383652|Helen2131||232;id=383816;mt=0.75;tm=61352;pl=4;st=0;ai=383824;ar=352;an=Санёёёк;pr=4211222;ft=1_1;end_time=0;,id=383815;mt=1;tm=61352;pl=4;st=0;ai=385041;ar=84;an=avrora7777;pr=4221212;ft=1_1;end_time=0;,id=383691;mt=0.5;tm=61106;pl=2;st=;ai=122665;ar=13 440;an=бездельник;pr=4111111;ft=1_1;end_time=0;,id=383874;mt=1;tm=61498;pl=2;st=0;ai=363432;ar=556;an=Ґurґєn Eloyan9356;pr=4111111;ft=1_1;end_time=0;,u2=150815|Ольгиня||14 317;id=383877;mt=1;tm=61505;pl=4;st=0;ai=226512;ar=16 662;an=лучана;pr=4121122;ft=1_1;end_time=0;,id=383876;mt=1;tm=61502;pl=4;st=0;ai=383755;ar=382;an=ДЕ берцор;pr=4212121;ft=1_1;end_time=0;,id=383879;mt=0.5;tm=61507;pl=4;st=;ai=369098;ar=214;an=Іnna Parhomuk9315;pr=4211221;ft=1_1;end_time=0;,u2=146562|lelik333||4 919;id=383878;mt=0.5;tm=61507;pl=4;st=0;ai=25795;ar=4 665;an=AceBerg;pr=4211222;ft=1_1;end_time=0;,id=383610;mt=1;tm=60935;pl=4;st=0.2;ai=260251;ar=12 274;an=yurzik;pr=4221222;ft=1_1;end_time=0;,u2=307363|Испанский летчик||2 029;id=383701;mt=0.5;tm=61124;pl=4;st=;ai=245511;ar=2 307;an=vad777;pr=4231121;ft=1_1;end_time=0;,id=383705;mt=1;tm=61129;pl=4;st=;ai=91332;ar=0;an=андрей989898;pr=4111221;ft=1_1;end_time=0;
$45
'249963|fartovaya1000|0|0: )){T}6151198','57'
$-1
$-1