merchant

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

commit 8b28a13e6bcb5550415d80cae5657bd2a106da10
parent 4ff949fa457e1b2b5ca2eda2bb8b67b6bdfa5ba7
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Thu, 12 Dec 2024 17:39:59 +0100

changing the output contract options for the donau

Diffstat:
Msrc/backend/taler-merchant-httpd_contract.c | 4++--
Msrc/backend/taler-merchant-httpd_contract.h | 21++++++++++++++++-----
2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_contract.c b/src/backend/taler-merchant-httpd_contract.c @@ -75,8 +75,8 @@ TMH_string_from_contract_output_type (enum TALER_MerchantContractOutputType t) return "token"; case TALER_MCOT_COIN: return "coin"; - case TALER_MCOT_TAX_RECEIPT: - return "tax_receipt"; + case TALER_MCOT_DONATION_RECEIPT: + return "donation_receipt"; default: return "invalid"; } diff --git a/src/backend/taler-merchant-httpd_contract.h b/src/backend/taler-merchant-httpd_contract.h @@ -152,9 +152,9 @@ enum TALER_MerchantContractOutputType TALER_MCOT_TOKEN = 2, /** - * Output type tax-receipt + * Output type donation-receipt */ - TALER_MCOT_TAX_RECEIPT = 3 + TALER_MCOT_DONATION_RECEIPT = 3 }; @@ -188,15 +188,26 @@ struct TALER_MerchantContractOutput } coin; /** - * Tax-receipt output. + * DONAU-receipt output. */ struct { /** + * Amount of the donation. (optional) + */ + struct TALER_Amount amount; + + /** + * TODO: Check if this block is possible to opperate without default placeholder... + * Is the donation receipt required? + */ + bool receipt_required; + + /** * Base URL of the donation authority that will issue the tax receipt. */ - const char *donau_url; - } tax_receipt; + //const char *donau_url; + } donation_receipt; /** * Token-based output.