commit b66dce246c0141fe6e5bb6dc800e12295c1cd4cd
parent 72695e8e41bb75b44d3d09ad5316eb9d48ac25d7
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 29 Jun 2022 19:30:23 +0200
-update to work with latest exchange API change
Diffstat:
1 file changed, 26 insertions(+), 18 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1293,24 +1293,32 @@ AGE_FAIL:
dc->wire_fee = *wire_fee;
GNUNET_assert (NULL != pc->wm);
TMH_db->preflight (TMH_db->cls);
- dc->dh = TALER_EXCHANGE_deposit (exchange_handle,
- &dc->amount_with_fee,
- pc->wire_transfer_deadline,
- pc->wm->payto_uri,
- &pc->wm->wire_salt,
- &pc->h_contract_terms,
- achp,
- NULL, /* FIXME oec: extension json blob */
- &dc->coin_pub,
- &dc->ub_sig,
- &denom_details->key,
- pc->timestamp,
- &hc->instance->merchant_pub,
- pc->refund_deadline,
- &dc->coin_sig,
- &deposit_cb,
- dc,
- &ec);
+ {
+ struct TALER_EXCHANGE_CoinDepositDetail cdd = {
+ .amount = dc->amount_with_fee,
+ .h_age_commitment = h_age_commitment,
+ .coin_pub = dc->coin_pub,
+ .coin_sig = dc->coin_sig,
+ .denom_sig = dc->ub_sig
+ };
+ struct TALER_EXCHANGE_DepositContractDetail dcd = {
+ .wire_deadline = pc->wire_transfer_deadline,
+ .merchant_payto_uri = pc->wm->payto_uri,
+ .wire_salt = pc->wm->wire_salt,
+ .h_contract_terms = pc->h_contract_terms,
+ .extension_details = NULL /* FIXME-OEC */,
+ .timestamp = pc->timestamp,
+ .merchant_pub = hc->instance->merchant_pub,
+ .refund_deadline = pc->refund_deadline
+ };
+
+ dc->dh = TALER_EXCHANGE_deposit (exchange_handle,
+ &dcd,
+ &cdd,
+ &deposit_cb,
+ dc,
+ &ec);
+ }
if (NULL == dc->dh)
{
/* Signature was invalid or some other constraint was not satisfied. If