merchant

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

commit 5e2e4432704549a7326fbce5ac59c082d777f186
parent 15ff300f61aaea3505f206eef0a4a2c3cfe033e6
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed,  5 Jul 2017 14:10:50 +0200

moving a 'PS' struct into exchange codebase

Diffstat:
Msrc/backend/taler-merchant-httpd_refund.c | 4++--
Msrc/backend/taler-merchant-httpd_refund.h | 20--------------------
2 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_refund.c b/src/backend/taler-merchant-httpd_refund.c @@ -119,7 +119,7 @@ MH_handler_refund_increase (struct TMH_RequestHandler *rh, const char *merchant; struct MerchantInstance *mi; struct GNUNET_HashCode h_contract_terms; - struct RefundConfirmationP confirmation; + struct TALER_MerchantRefundConfirmationPS confirmation; struct GNUNET_CRYPTO_EddsaSignature sig; struct GNUNET_JSON_Specification spec[] = { TALER_JSON_spec_amount ("refund", &refund), @@ -264,7 +264,7 @@ MH_handler_refund_increase (struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); confirmation.purpose.purpose = htonl (TALER_SIGNATURE_MERCHANT_REFUND_OK); - confirmation.purpose.size = htonl (sizeof (struct RefundConfirmationP)); + confirmation.purpose.size = htonl (sizeof (struct TALER_MerchantRefundConfirmationPS)); if (GNUNET_OK != GNUNET_CRYPTO_eddsa_sign (&mi->privkey.eddsa_priv, diff --git a/src/backend/taler-merchant-httpd_refund.h b/src/backend/taler-merchant-httpd_refund.h @@ -26,26 +26,6 @@ #include "taler-merchant-httpd.h" /** - * We confirm with a signature that the refund has been successfully - * done. Even though the frontend doesn't usually do crypto, this signature - * may turn useful in court. - */ -struct RefundConfirmationP -{ - - /** - * Set to TALER_SIGNATURE_MERCHANT_REFUND_OK. - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - /** - * Hashing the order id, as frontends don't handle contract terms - */ - struct GNUNET_HashCode h_order_id GNUNET_PACKED; - -}; - -/** * Handle request for increasing the refund associated with * a contract. *