From 2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 17 May 2018 14:30:02 +0200 Subject: Trigger /refund currency missmatch the right way. --- src/exchange-lib/exchange_api_refund.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/exchange-lib/exchange_api_refund.c') diff --git a/src/exchange-lib/exchange_api_refund.c b/src/exchange-lib/exchange_api_refund.c index ef1d66b9..1ddf642d 100644 --- a/src/exchange-lib/exchange_api_refund.c +++ b/src/exchange-lib/exchange_api_refund.c @@ -180,6 +180,10 @@ handle_refund_finished (void *cls, /* Kind of normal: the money was already sent to the merchant (it was too late for the refund). */ break; + case MHD_HTTP_PRECONDITION_FAILED: + /* Client request was inconsistent; might be a currency missmatch + problem. */ + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: /* Server had an internal issue; we should retry, but this API leaves this to the application */ -- cgit v1.2.3