diff options
Diffstat (limited to 'src/lib/merchant_api_post_orders.c')
-rw-r--r-- | src/lib/merchant_api_post_orders.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/merchant_api_post_orders.c b/src/lib/merchant_api_post_orders.c index f4cc5290..f1617aa2 100644 --- a/src/lib/merchant_api_post_orders.c +++ b/src/lib/merchant_api_post_orders.c @@ -251,14 +251,18 @@ TALER_MERCHANT_orders_post2 ( po->cb_cls = cb_cls; po->url = TALER_url_join (backend_url, "private/orders", - "refund_delay", - (0 != refund_delay.rel_value_us) - ? delay_s - : NULL, NULL); req = json_pack ("{s:O}", "order", (json_t *) order); GNUNET_assert (NULL != req); + if (0 != refund_delay.rel_value_us) + { + GNUNET_assert (0 == + json_object_set_new (req, + "refund_delay", + GNUNET_JSON_from_time_rel ( + refund_delay))); + } if (NULL != payment_target) { GNUNET_assert (0 == |