Api testiranje

This commit is contained in:
pero1203 2020-12-05 12:25:17 +01:00
parent 6e401679c2
commit 4b7aac2408
2 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@ $action = 'logout';
// Izvedemo klic (GET ali POST)
//$result = executeGET();
$result = executePOST();
//$result = executePOST();

View File

@ -15,8 +15,8 @@ $private_key = 'NLFYb67/[pUE%W-s';
// Nastavimo parametre
$action = 'create_narocilo';
$action = 'stripe_checkout_success';
$action = 'check_ddv';
//$action = 'stripe_checkout_success';
//$action = 'check_ddv';
//$action = 'get_predracun';
//$action = 'placaj_narocilo';
//$action = 'get_paketi';
@ -91,7 +91,7 @@ function executePOST(){
$params = 'action='.$action; // Funkcija, ki jo želimo izvesti
// POST data
/*$post_data = array(
$post_data = array(
"email" => 'peter.hrvatin@gmail.com',
"status" => '0',
"package_id" => '3',
@ -106,15 +106,15 @@ function executePOST(){
"podjetje_postna" => '1000',
"podjetje_posta" => 'Ljubljanačšžćčxxx',
"podjetje_davcna" => '11122233',
);*/
);
/*$post_data = array(
"narocilo_id" => '33'
);*/
$post_data = array(
/*$post_data = array(
"podjetje_drzava" => 'Germany',
"podjetje_davcna" => '115235681',
"cena" => '24.28'
);
"cena" => '19,90'
);*/
/*$post_data = array(
"ime" => 'Peter Hrvatin',
"organizacija" => 'Ikea d.o.o.',