gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] 06/09: Paygen /track preparation.


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] 06/09: Paygen /track preparation.
Date: Thu, 10 May 2018 22:18:50 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant.

commit 9ebfdb165ded86a47903559e18622c5afc999a5d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 10 20:01:20 2018 +0200

    Paygen /track preparation.
    
    Inserting a /proposal + /pay pair so as to
    prepare the preliminary data to use /track CMDs on.
---
 .../taler-merchant-generate-payments_new.c         | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c 
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index 12375de..bed9d21 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -175,6 +175,42 @@ run (void *cls,
        FIRST_INSTRUCTION,
        &payments_number),
 
+    /* Next proposal-pay cycle will be used by /track CMDs
+     * and so it will not have to be looped over, only /track
+     * CMDs will have to.  */
+
+    TALER_TESTING_cmd_proposal
+      ("create-proposal-2",
+       merchant_url,
+       is->ctx,
+       MHD_HTTP_OK,
+       "{\"max_fee\":\
+          {\"currency\":\"USD\",\
+           \"value\":0,\
+           \"fraction\":50000000},\
+        \"refund_deadline\":\"\\/Date(0)\\/\",\
+        \"pay_deadline\":\"\\/Date(99999999999)\\/\",\
+        \"amount\":\
+          {\"currency\":\"USD\",\
+           \"value\":5,\
+           \"fraction\":0},\
+        \"summary\": \"merchant-lib testcase\",\
+        \"fulfillment_url\": \"https://example.com/\",\
+        \"products\": [ {\"description\":\"ice track cream\",\
+                         \"value\":\"{USD:5}\"} ] }",
+        NULL),
+
+    TALER_TESTING_cmd_pay
+      ("deposit-simple-2",
+       merchant_url,
+       is->ctx,
+       MHD_HTTP_OK,
+       "create-proposal-2",
+       "withdraw-coin-2",
+       "USD:5",
+       "USD:4.99",
+       "USD:0.01"),
+
     TALER_TESTING_cmd_end ()
   };
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]