diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-22 11:15:27 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-22 11:15:27 +0200 |
commit | 487cccce00281167d79d0f21ca10b89fdb44579b (patch) | |
tree | 2110df2aed2640be8fce828b5e48c6f6fbdaa318 | |
parent | 7bd7330afaf05a3ff535dbf0437d6f3ae321373a (diff) | |
download | merchant-487cccce00281167d79d0f21ca10b89fdb44579b.tar.gz merchant-487cccce00281167d79d0f21ca10b89fdb44579b.tar.bz2 merchant-487cccce00281167d79d0f21ca10b89fdb44579b.zip |
sticking to new specs (mionor change)
-rw-r--r-- | src/frontend/generate_taler_contract.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php index 3162517d..1030ae2a 100644 --- a/src/frontend/generate_taler_contract.php +++ b/src/frontend/generate_taler_contract.php @@ -76,20 +76,20 @@ $teatax = array ('value' => 1, $json = json_encode (array ('amount' => array ('value' => $value, 'fraction' => $fraction, 'currency' => $currency), - 'max fee' => array ('value' => 3, + 'max_fee' => array ('value' => 3, 'fraction' => 01010, 'currency' => $currency), 'trans_id' => $transaction_id, - 'details' => + 'details' => array ( array ('product' => array ('items' => array ('description' => $desc, 'quantity' => 1, 'itemprice' => array ('value' => $value, 'fraction' => $fraction, 'currency' => $currency)), - 'product_id' => $p_id, - 'taxes' => array (array ('teatax' => $teatax)), - 'delivery_date' => "Some Date Format", + 'product_id' => $p_id, + 'taxes' => array (array ('teatax' => $teatax)), + 'delivery date' => "Some Date Format", 'delivery location' => 'LNAME1', 'merchant' => array ('address' => 'LNAME2', 'name' => 'test merchant', @@ -100,8 +100,8 @@ $json = json_encode (array ('amount' => array ('value' => $value, 'region' => 'Test Region', 'province' => 'Test Province', 'ZIP code' => 4908)), - 'L-names' => array (array ('LNAME1' => 'Test Address 1', - 'LNAME2' => 'Test Address 2')))));//, + 'L-names' => array ('LNAME1' => 'Test Address 1', + 'LNAME2' => 'Test Address 2'))))));//, //JSON_PRETTY_PRINT); if ($cli_debug && FALSE) |