diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-19 17:28:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-19 17:28:31 +0200 |
commit | fe161111be5a51ba3fdd0a61392c222ed01e9b68 (patch) | |
tree | 6a447fea90f4ccb5a4a2b3b526dc8d566ddc487c | |
parent | 91e97e81c390bd691dbedad654887dfbd9412351 (diff) | |
download | sync-fe161111be5a51ba3fdd0a61392c222ed01e9b68.tar.gz sync-fe161111be5a51ba3fdd0a61392c222ed01e9b68.tar.bz2 sync-fe161111be5a51ba3fdd0a61392c222ed01e9b68.zip |
disable use of claim tokens for sync
-rw-r--r-- | src/sync/sync-httpd_backup_post.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/sync/sync-httpd_backup_post.c b/src/sync/sync-httpd_backup_post.c index 3c7fe57..c989bbc 100644 --- a/src/sync/sync-httpd_backup_post.c +++ b/src/sync/sync-httpd_backup_post.c @@ -266,6 +266,7 @@ make_payment_request (const char *order_id, { char tok[256]; + /* This path should not be taken, as we disabled tokens */ GNUNET_assert (NULL != GNUNET_STRINGS_data_to_string (token, sizeof (*token), @@ -562,12 +563,18 @@ begin_payment (struct BackupContext *bc, "amount", TALER_JSON_from_amount (&SH_annual_fee), "summary", "annual fee for sync service", "fulfillment_url", SH_fulfillment_url); - bc->po = TALER_MERCHANT_orders_post (SH_ctx, - SH_backend_url, - order, - GNUNET_TIME_UNIT_ZERO, - &proposal_cb, - bc); + bc->po = TALER_MERCHANT_orders_post2 (SH_ctx, + SH_backend_url, + order, + GNUNET_TIME_UNIT_ZERO, + NULL, /* no payment target */ + 0, + NULL, /* no inventory products */ + 0, + NULL, /* no uuids */ + false, /* do NOT require claim token */ + &proposal_cb, + bc); SH_trigger_curl (); json_decref (order); return MHD_YES; |