commit 6b2f520139a79d2e5fc9066edb9615d82c88ef89
parent 39fa5cc35bba1362324a8e9ff2f5ef3a1345a011
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 3 Jun 2023 23:24:14 +0200
adapt to latest merchant API
Diffstat:
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/src/taler-mdb.c b/src/taler-mdb.c
@@ -1830,27 +1830,21 @@ async_refund_cleanup_job (void *cls)
* @brief Callback to process a POST /refund request
*
* @param cls closure
- * @param hr HTTP response details
- * @param 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_complete_cb (void *cls,
- const struct TALER_MERCHANT_HttpResponse *hr,
- const char *refund_uri,
- const struct TALER_PrivateContractHashP *h_contract)
+ const struct TALER_MERCHANT_RefundResponse *rr)
{
struct Refund *r = cls;
- (void) refund_uri;
r->orh = NULL;
- if (MHD_HTTP_OK != hr->http_status)
+ if (MHD_HTTP_OK != rr->hr.http_status)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to grant consumer refund: %u/%d\n",
- hr->http_status,
- (int) hr->ec);
+ rr->hr.http_status,
+ (int) rr->hr.ec);
}
GNUNET_CONTAINER_DLL_remove (refund_head,
refund_tail,