gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: comment about abort-pay


From: gnunet
Subject: [taler-merchant] branch master updated: comment about abort-pay
Date: Thu, 22 Jul 2021 19:59:28 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 59606705 comment about abort-pay
59606705 is described below

commit 59606705d11c3173e87873d700075b4a6acff2f0
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jul 22 19:58:46 2021 +0200

    comment about abort-pay
---
 contrib/merchant-backoffice                           | 2 +-
 src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/contrib/merchant-backoffice b/contrib/merchant-backoffice
index fe987187..4320467d 160000
--- a/contrib/merchant-backoffice
+++ b/contrib/merchant-backoffice
@@ -1 +1 @@
-Subproject commit fe987187e178816d42ed12178d430c8771cb5a75
+Subproject commit 4320467db1392e5f48a4acd079f7e2a253cf9984
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c 
b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 233ed183..2efbade0 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1044,6 +1044,15 @@ check_coin_refunded (void *cls,
 {
   struct PayContext *pc = cls;
 
+  /* We look at refunds here that apply to the coins
+     that the customer is currently trying to pay us with.
+
+     Such refunds are not "normal" refunds, but abort-pay refunds, which are
+     given in the case that the wallet aborts the payment.
+     In the case the wallet then decides to complete the payment *after* doing
+     an abort-pay refund (an unusual but possible case), we need
+     to make sure that existing refunds are accounted for. */
+
   for (unsigned int i = 0; i<pc->coins_cnt; i++)
   {
     struct DepositConfirmation *dc = &pc->dc[i];

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]