diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-04 13:35:32 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-04 13:35:32 +0200 |
commit | d17e571f782a6c9c178f8aa6232524af867eb1cb (patch) | |
tree | 1b8b5beb3c61bc7c75e78a5de902c314ee771ab6 /src/backend/taler-merchant-httpd_pay.c | |
parent | cf0d8b8511f727c4650f86241c0254f30f40362e (diff) | |
download | merchant-d17e571f782a6c9c178f8aa6232524af867eb1cb.tar.gz merchant-d17e571f782a6c9c178f8aa6232524af867eb1cb.tar.bz2 merchant-d17e571f782a6c9c178f8aa6232524af867eb1cb.zip |
update to latest exchange API, some better error handling
Diffstat (limited to 'src/backend/taler-merchant-httpd_pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_pay.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index 821724ea..b0178cdc 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -1139,12 +1139,19 @@ deposit_cb (void *cls, * NULL if not available * @param exchange_trusted #GNUNET_YES if this exchange is * trusted by config + * @param ec error code, #TALER_EC_NONE on success + * @param http_status the HTTP status we got from the exchange + * @param error_reply the full reply from the exchange, NULL if + * the response was NOT in JSON or on success */ static void process_pay_with_exchange (void *cls, struct TALER_EXCHANGE_Handle *mh, const struct TALER_Amount *wire_fee, - int exchange_trusted) + int exchange_trusted, + enum TALER_ErrorCode ec, + unsigned int http_status, + const json_t *error_reply) { struct PayContext *pc = cls; const struct TALER_EXCHANGE_Keys *keys; |