diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-24 17:38:09 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-06-24 17:38:09 -0400 |
commit | 0fbdd6c6cda1c7e0ad0b4ffc3f22bac3e1176c1d (patch) | |
tree | 8935dc12924a27e8c1112314b88fa895e1bf1240 /src/testing/test_merchant_api.c | |
parent | ebfa7888c0cbb461cf70a8d809b1d183011713ce (diff) | |
download | merchant-0fbdd6c6cda1c7e0ad0b4ffc3f22bac3e1176c1d.tar.gz merchant-0fbdd6c6cda1c7e0ad0b4ffc3f22bac3e1176c1d.tar.bz2 merchant-0fbdd6c6cda1c7e0ad0b4ffc3f22bac3e1176c1d.zip |
got refunds working and tested
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r-- | src/testing/test_merchant_api.c | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 1752ab16..0856757b 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -291,10 +291,14 @@ run (void *cls, TALER_TESTING_cmd_wallet_get_order ("get-order-wallet-1", merchant_url, "create-proposal-1", + false, + false, MHD_HTTP_OK), TALER_TESTING_cmd_merchant_get_order ("get-order-merchant-1", merchant_url, "create-proposal-1", + false, + false, MHD_HTTP_OK), #if 0 TALER_TESTING_cmd_check_payment ("check-payment-1", @@ -328,6 +332,18 @@ run (void *cls, "withdraw-coin-1", "EUR:5", "EUR:4.99"), + TALER_TESTING_cmd_wallet_get_order ("get-order-wallet-1-2", + merchant_url, + "create-proposal-1", + true, + false, + MHD_HTTP_OK), + TALER_TESTING_cmd_merchant_get_order ("get-order-merchant-1-2", + merchant_url, + "create-proposal-1", + true, + false, + MHD_HTTP_OK), #if 0 TALER_TESTING_cmd_poll_payment_conclude ("poll-payment-conclude-2", MHD_HTTP_OK, @@ -546,6 +562,13 @@ run (void *cls, "1r", /* order ID */ "EUR:0.1", MHD_HTTP_OK), + /* + TALER_TESTING_cmd_wallet_get_order ("get-order-wallet-1r", + merchant_url, + "create-proposal-1r", + true, + true, + MHD_HTTP_OK),*/ #if 0 TALER_TESTING_cmd_poll_payment_conclude ("poll-payment-refund-conclude-1", MHD_HTTP_OK, @@ -588,12 +611,13 @@ run (void *cls, "EUR:0.1", MHD_HTTP_CONFLICT), /* Try to increase a non existent proposal. */ - TALER_TESTING_cmd_merchant_order_refund ("refund-increase-unpaid-proposal", - merchant_url, - "refund test", - "non-existent-id", - "EUR:0.1", - MHD_HTTP_NOT_FOUND), + TALER_TESTING_cmd_merchant_order_refund ( + "refund-increase-nonexistent-proposal", + merchant_url, + "refund test", + "non-existent-id", + "EUR:0.1", + MHD_HTTP_NOT_FOUND), /* The following block will (1) create a new reserve, then (2) a proposal, then (3) pay for @@ -638,7 +662,7 @@ run (void *cls, TALER_TESTING_cmd_check_bank_transfer ( "check_bank_transfer-paid-unincreased-refund", EXCHANGE_URL, - "EUR:9.88", /* '4.98 from above', plus 4.99 from 'pay-for-refund-1r' + "EUR:9.97", /* '4.98 from above', plus 4.99 from 'pay-for-refund-1r' and MINUS 0.1 PLUS 0.01 (deposit fee) from 'refund-increase-1r' */ exchange_payto, merchant_payto), @@ -1126,8 +1150,10 @@ run (void *cls, 0, 10, 10), +#endif TALER_TESTING_cmd_batch ("refund", refund), +#if 0 // #endif TALER_TESTING_cmd_batch ("tip", tip), |