merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit c959961a22806d2fcb39d34d6a424950e76cc6c6
parent 12f981e55906711bee23845ef5b690f217c77df3
Author: priscilla <priscilla.huang@efrei.net>
Date:   Thu, 12 Jan 2023 09:09:15 -0500

update test using templates

Diffstat:
Msrc/testing/testing_api_cmd_post_using_templates.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/testing/testing_api_cmd_post_using_templates.c b/src/testing/testing_api_cmd_post_using_templates.c @@ -79,22 +79,22 @@ struct PostUsingTemplatesState */ static void post_using_templates_cb (void *cls, - const struct TALER_MERCHANT_HttpResponse *hr) + const struct TALER_MERCHANT_PostOrdersReply *por) { struct PostUsingTemplatesState *tis = cls; tis->iph = NULL; - if (tis->http_status != hr->http_status) + if (tis->http_status != por->hr.http_status) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Unexpected response code %u (%d) to command %s\n", - hr->http_status, - (int) hr->ec, + por->hr.http_status, + (int) por->hr.ec, TALER_TESTING_interpreter_get_current_label (tis->is)); TALER_TESTING_interpreter_fail (tis->is); return; } - switch (hr->http_status) + switch (por->hr.http_status) { case MHD_HTTP_OK: break; @@ -106,7 +106,7 @@ post_using_templates_cb (void *cls, GNUNET_break (0); GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unhandled HTTP status %u for POST /templates/$ID.\n", - hr->http_status); + por->hr.http_status); break; } TALER_TESTING_interpreter_next (tis->is);