summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_refund.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 14:30:02 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 14:30:02 +0200
commit2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc (patch)
tree552c48215bb5afde9c6870e0919432e8fd22599b /src/exchange-lib/exchange_api_refund.c
parente94e8c34c58343001dfe84ed8f5a87f1516c687d (diff)
downloadexchange-2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc.tar.gz
exchange-2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc.tar.bz2
exchange-2fff7d8f3abfdd29b865c94285f3814d8b5f7ecc.zip
Trigger /refund currency missmatch the right way.
Diffstat (limited to 'src/exchange-lib/exchange_api_refund.c')
-rw-r--r--src/exchange-lib/exchange_api_refund.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_refund.c b/src/exchange-lib/exchange_api_refund.c
index ef1d66b90..1ddf642d6 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 */