diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-11-24 09:51:53 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-11-24 09:51:53 +0100 |
commit | 6fa958a3cec156bc0eb89ddfae8b150d7400d2be (patch) | |
tree | 7b1f970e24cd24aee0c584757ccf300ebc541c8c /src/lib | |
parent | f0e6846a4f5f398faa8a7bbbcfad5096fdd4352b (diff) |
address misc. FIXMEs
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/merchant_api_post_order_pay.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/merchant_api_post_order_pay.c b/src/lib/merchant_api_post_order_pay.c index 5a5c1631..57c85565 100644 --- a/src/lib/merchant_api_post_order_pay.c +++ b/src/lib/merchant_api_post_order_pay.c @@ -476,6 +476,8 @@ TALER_MERCHANT_order_pay ( TALER_MERCHANT_OrderPayCallback pay_cb, void *pay_cb_cls) { + struct GNUNET_HashCode wallet_data_hash; + if (GNUNET_YES != TALER_amount_cmp_currency (amount, max_fee)) @@ -483,7 +485,9 @@ TALER_MERCHANT_order_pay ( GNUNET_break (0); return NULL; } - + if (NULL != wallet_data) + TALER_json_hash (wallet_data, + &wallet_data_hash); { struct TALER_MERCHANT_PaidCoin pc[num_coins]; @@ -510,7 +514,9 @@ TALER_MERCHANT_order_pay ( &fee, h_wire, h_contract_terms, - NULL /* FIXME: compute using wallet_data */, + (NULL != wallet_data) + ? &wallet_data_hash + : NULL, coin->h_age_commitment, NULL /* h_extensions! */, &h_denom_pub, |