merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 4dd2fd82dd8dc24dd53f33cb3d48da175ed90108
parent 7a15471662045d18606ea60f37a5818c0781582f
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 26 Aug 2019 00:12:19 +0200

non-existing session info is not supposed to be an error

Diffstat:
Msrc/backend/taler-merchant-httpd_check-payment.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c @@ -89,6 +89,9 @@ send_pay_request (struct MHD_Connection *connection, char *url; char *already_paid_order_id = NULL; + /* Check if resource_id has been paid for in the same session + * with another order_id. + */ if ( (NULL != session_id) && (NULL != resource_url) ) { qs = db->find_session_info (db->cls, @@ -96,7 +99,7 @@ send_pay_request (struct MHD_Connection *connection, session_id, resource_url, &mi->pubkey); - if (0 > qs) + if (qs < 0) { /* single, read-only SQL statements should never cause serialization problems */