diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-03 23:23:15 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-03 23:23:15 +0200 |
commit | d4ab34a799965efed34bbb442710ee46dd99a32c (patch) | |
tree | e4d3e79761eb5a292c473c91fee885c18a4885b4 | |
parent | 3daee0eccdcf25c2a4a053843d68c794bb72270f (diff) | |
download | anastasis-d4ab34a799965efed34bbb442710ee46dd99a32c.tar.gz anastasis-d4ab34a799965efed34bbb442710ee46dd99a32c.tar.bz2 anastasis-d4ab34a799965efed34bbb442710ee46dd99a32c.zip |
adapt to latest merchant API
-rw-r--r-- | src/backend/anastasis-httpd_truth-challenge.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/backend/anastasis-httpd_truth-challenge.c b/src/backend/anastasis-httpd_truth-challenge.c index c37d164..cda074c 100644 --- a/src/backend/anastasis-httpd_truth-challenge.c +++ b/src/backend/anastasis-httpd_truth-challenge.c @@ -360,22 +360,17 @@ AH_truth_challenge_shutdown (void) * Callback to process a POST /orders/ID/refund request * * @param cls closure with a `struct RefundEntry *` - * @param hr HTTP response details - * @param taler_refund_uri the refund uri offered to the wallet - * @param h_contract hash of the contract a Browser may need to authorize - * obtaining the HTTP response. + * @param rr response details */ static void refund_cb ( void *cls, - const struct TALER_MERCHANT_HttpResponse *hr, - const char *taler_refund_uri, - const struct TALER_PrivateContractHashP *h_contract) + const struct TALER_MERCHANT_RefundResponse *rr) { struct RefundEntry *re = cls; re->ro = NULL; - switch (hr->http_status) + switch (rr->hr.http_status) { case MHD_HTTP_OK: { @@ -407,9 +402,9 @@ refund_cb ( GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Refund `%s' failed with HTTP status %u: %s (#%u)\n", re->order_id, - hr->http_status, - hr->hint, - (unsigned int) hr->ec); + rr->hr.http_status, + rr->hr.hint, + (unsigned int) rr->hr.ec); break; } GNUNET_CONTAINER_DLL_remove (re_head, |