merchant

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

commit d46e00a7a7a534ad214842dcccaff8fb04ef1878
parent 1ce3a590dbe9d11b39e5da4ee61f393edaa90267
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Sun, 29 Jun 2025 16:07:46 +0200

donau payment test run/fails

Diffstat:
Msrc/testing/test_merchant_api.c | 32++++++++++++++++++++++----------
1 file changed, 22 insertions(+), 10 deletions(-)

diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c @@ -1696,13 +1696,13 @@ run (void *cls, * Move money to the exchange's bank account. */ cmd_transfer_to_exchange ("create-reserve-tokens", - "EUR:10.02"), + "EUR:20.03"), /** * Make a reserve exist, according to the previous transfer. */ cmd_exec_wirewatch ("wirewatch-1"), TALER_TESTING_cmd_check_bank_admin_transfer ("check_bank_transfer-tokens", - "EUR:10.02", + "EUR:20.03", payer_payto, exchange_payto, "create-reserve-tokens"), @@ -1716,6 +1716,11 @@ run (void *cls, "EUR:5", 0, MHD_HTTP_OK), + TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-3", + "create-reserve-tokens", + "EUR:5", + 0, + MHD_HTTP_OK), TALER_TESTING_cmd_merchant_post_tokenfamilies ( "create-upcoming-tokenfamily", merchant_url, @@ -1850,8 +1855,6 @@ run (void *cls, }; struct TALER_TESTING_Command donau[] = { - // FIXME: PREPARE THE DONAU to work with us - // 1. Add the charity to the donau TALER_TESTING_cmd_set_var ( "donau", TALER_TESTING_cmd_get_donau ("get-donau", @@ -1876,8 +1879,6 @@ run (void *cls, merchant_url, 1, MHD_HTTP_OK), - // FIXME_2: Add check for the donau charity instance info being corrected - // with info from the donau TALER_TESTING_cmd_merchant_post_orders_donau ( "create-donau-order", cred.cfg, @@ -1887,10 +1888,21 @@ run (void *cls, GNUNET_TIME_UNIT_ZERO_TS, GNUNET_TIME_UNIT_FOREVER_TS, "EUR:10.0"), - - // FIXME: Most probably we need to merge the functionality of the - // TALER_TESTING_cmd_merchant_pay_order and TALER_TESTING_cmd_issue_receipts from DONAU - // Most probably we only need to copy the part of creation of the BUDIs + TALER_TESTING_cmd_merchant_pay_order_donau( + "pay-donau-order", + merchant_url, + MHD_HTTP_OK, + "create-donau-order", + "withdraw-coin-3", + "EUR:10.0", + "EUR:9.99", + NULL, + 0, + "post-charity", + 2025, + "123456789", + "random_salt" + ), TALER_TESTING_cmd_merchant_delete_donau_instance ( "delete-donau-instance", merchant_url,