merchant

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

commit 827885b79207fe55ef8cfbe42b441ecc21440833
parent f18e537c65ba49a852df2f07a39b2af1dfc212c1
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Thu, 10 Apr 2025 12:44:16 +0200

adding donau_testing_lib.h to the merchant test suite

Diffstat:
Msrc/testing/test_merchant_api.c | 26++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c @@ -38,6 +38,10 @@ #include <taler/taler_error_codes.h> #include "taler_merchant_testing_lib.h" +#ifdef HAVE_DONAU_DONAU_SERVICE_H +#include <donau/donau_testing_lib.h> +#endif + /** * The 'poll-orders-conclude-1' and other 'conclude' @@ -1816,7 +1820,22 @@ run (void *cls, TALER_TESTING_cmd_end () }; + #ifdef HAVE_DONAU_DONAU_SERVICE_H + const struct DONAU_BearerToken bearer = { + .token = NULL + }; + struct TALER_TESTING_Command donau[] = { + //FIXME: PREPARE THE DONAU to work with us + //1. Add the charity to the donau + TALER_TESTING_cmd_charity_post ("post-charity", + "example", + "example.com", + "EUR:50", // max_per_year + "EUR:0", // receipts_to_date + 2025, // current year + &bearer, + MHD_HTTP_CREATED), TALER_TESTING_cmd_merchant_post_donau_instance( "post-donau-instance", merchant_url, @@ -1825,7 +1844,9 @@ run (void *cls, "get-donau-instance", merchant_url, MHD_HTTP_OK), - //FIXME: Add the part with making the order and paying it over with the donau receipt + //FIXME: Add the order payment for the donau + //FIXME: Probably the order payment must be + // checked against the received donation_receipts TALER_TESTING_cmd_merchant_delete_donau_instance( "delete-donau-instance", merchant_url, @@ -1837,6 +1858,7 @@ run (void *cls, MHD_HTTP_OK), TALER_TESTING_cmd_end () }; + #endif struct TALER_TESTING_Command commands[] = { /* general setup */ @@ -1848,7 +1870,7 @@ run (void *cls, TALER_TESTING_cmd_system_start ( "start-taler", config_file, - "-emaD", + "-emaDZ", "-u", "exchange-account-exchange", "-r", "merchant-exchange-test", NULL),