aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-06-03 23:23:15 +0200
committerChristian Grothoff <christian@grothoff.org>2023-06-03 23:23:15 +0200
commitd4ab34a799965efed34bbb442710ee46dd99a32c (patch)
treee4d3e79761eb5a292c473c91fee885c18a4885b4
parent3daee0eccdcf25c2a4a053843d68c794bb72270f (diff)
downloadanastasis-d4ab34a799965efed34bbb442710ee46dd99a32c.tar.gz
anastasis-d4ab34a799965efed34bbb442710ee46dd99a32c.zip
adapt to latest merchant API
-rw-r--r--src/backend/anastasis-httpd_truth-challenge.c17
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)
360 * Callback to process a POST /orders/ID/refund request 360 * Callback to process a POST /orders/ID/refund request
361 * 361 *
362 * @param cls closure with a `struct RefundEntry *` 362 * @param cls closure with a `struct RefundEntry *`
363 * @param hr HTTP response details 363 * @param rr response details
364 * @param taler_refund_uri the refund uri offered to the wallet
365 * @param h_contract hash of the contract a Browser may need to authorize
366 * obtaining the HTTP response.
367 */ 364 */
368static void 365static void
369refund_cb ( 366refund_cb (
370 void *cls, 367 void *cls,
371 const struct TALER_MERCHANT_HttpResponse *hr, 368 const struct TALER_MERCHANT_RefundResponse *rr)
372 const char *taler_refund_uri,
373 const struct TALER_PrivateContractHashP *h_contract)
374{ 369{
375 struct RefundEntry *re = cls; 370 struct RefundEntry *re = cls;
376 371
377 re->ro = NULL; 372 re->ro = NULL;
378 switch (hr->http_status) 373 switch (rr->hr.http_status)
379 { 374 {
380 case MHD_HTTP_OK: 375 case MHD_HTTP_OK:
381 { 376 {
@@ -407,9 +402,9 @@ refund_cb (
407 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 402 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
408 "Refund `%s' failed with HTTP status %u: %s (#%u)\n", 403 "Refund `%s' failed with HTTP status %u: %s (#%u)\n",
409 re->order_id, 404 re->order_id,
410 hr->http_status, 405 rr->hr.http_status,
411 hr->hint, 406 rr->hr.hint,
412 (unsigned int) hr->ec); 407 (unsigned int) rr->hr.ec);
413 break; 408 break;
414 } 409 }
415 GNUNET_CONTAINER_DLL_remove (re_head, 410 GNUNET_CONTAINER_DLL_remove (re_head,