aboutsummaryrefslogtreecommitdiff
path: root/src/merchant-tools/taler-merchant-generate-payments_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/merchant-tools/taler-merchant-generate-payments_new.c')
-rw-r--r--src/merchant-tools/taler-merchant-generate-payments_new.c86
1 files changed, 44 insertions, 42 deletions
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c b/src/merchant-tools/taler-merchant-generate-payments_new.c
index ca42d52d..3bc7e5a0 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -268,47 +268,6 @@ run (void *cls,
"track-transaction-1",
"deposit-simple-2"),
- TALER_TESTING_cmd_proposal
- ("create-proposal-3",
- 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\": \"unaggregated deposit!\",\
- \"fulfillment_url\": \"https://example.com/\",\
- \"products\": [ {\"description\":\"unaggregated cream\",\
- \"value\":\"{USD:5}\"} ] }",
- NULL),
-
- TALER_TESTING_cmd_pay
- ("deposit-simple-3",
- merchant_url,
- is->ctx,
- MHD_HTTP_OK,
- "create-proposal-3",
- "withdraw-coin-3",
- "USD:5",
- "USD:4.99",
- "USD:0.01"),
-
- TALER_TESTING_cmd_merchant_track_transaction
- ("track-transaction-2",
- merchant_url,
- is->ctx,
- MHD_HTTP_ACCEPTED,
- "dummy", // "check bank" CMD, never used, to be deleted.
- "deposit-simple-3",
- "USD:0.01"),
-
/* Doing the 2-coins payment; needed to generate the
* "failed dependency" response error, at /track/transaction.
* NOTE: not used here, but done just in case a testing
@@ -332,7 +291,7 @@ run (void *cls,
{\"currency\":\"USD\",\
\"value\":10,\
\"fraction\":0},\
- \"summary\": \"2-coins payment\",\
+ \"summary\": \"2-coins untracked payment\",\
\"fulfillment_url\": \"https://example.com/\",\
\"products\": [ {\"description\":\"2-coins payment\",\
\"value\":\"{USD:10}\"} ] }",
@@ -353,6 +312,49 @@ run (void *cls,
("aggregate-2",
cfg_filename),
+ /* Must be _after_ any aggregation takes place. */
+ TALER_TESTING_cmd_proposal
+ ("create-proposal-3",
+ 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\": \"unaggregated deposit!\",\
+ \"fulfillment_url\": \"https://example.com/\",\
+ \"products\": [ {\"description\":\"unaggregated cream\",\
+ \"value\":\"{USD:5}\"} ] }",
+ NULL),
+
+ TALER_TESTING_cmd_pay
+ ("deposit-simple-3",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ "create-proposal-3",
+ "withdraw-coin-3",
+ "USD:5",
+ "USD:4.99",
+ "USD:0.01"),
+
+ TALER_TESTING_cmd_merchant_track_transaction
+ ("track-transaction-2",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_ACCEPTED,
+ "dummy", // "check bank" CMD, never used, to be deleted.
+ "deposit-simple-3",
+ "USD:0.01"),
+
+
TALER_TESTING_cmd_rewind_ip
("rewind-tracks",
TRACKS_INSTRUCTION,