From 4b7aac2408b8484c8c256eaf4c7f28d7f147b267 Mon Sep 17 00:00:00 2001 From: pero1203 Date: Sat, 5 Dec 2020 12:25:17 +0100 Subject: [PATCH] Api testiranje --- frontend/api/api_test.php | 2 +- frontend/payments/api_test.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/api/api_test.php b/frontend/api/api_test.php index 748205387..c86bab347 100644 --- a/frontend/api/api_test.php +++ b/frontend/api/api_test.php @@ -20,7 +20,7 @@ $action = 'logout'; // Izvedemo klic (GET ali POST) //$result = executeGET(); -$result = executePOST(); +//$result = executePOST(); diff --git a/frontend/payments/api_test.php b/frontend/payments/api_test.php index 2b2f1f349..60aff0b41 100644 --- a/frontend/payments/api_test.php +++ b/frontend/payments/api_test.php @@ -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.',