summaryrefslogtreecommitdiff
path: root/src/lib/testing_api_cmd_pay.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-18 15:10:42 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-18 15:10:42 +0100
commit616f8ca3c2cb7bd3b263514bbc2be41442d00b4d (patch)
treeba7630f46973c9442648be3d29d95702cd513231 /src/lib/testing_api_cmd_pay.c
parent571141495cb334c41f9a0f6084a2a8949657a07c (diff)
downloadmerchant-616f8ca3c2cb7bd3b263514bbc2be41442d00b4d.tar.gz
merchant-616f8ca3c2cb7bd3b263514bbc2be41442d00b4d.tar.bz2
merchant-616f8ca3c2cb7bd3b263514bbc2be41442d00b4d.zip
Remove 'exchange' handle from pay-abort-refund CMD.
Diffstat (limited to 'src/lib/testing_api_cmd_pay.c')
-rw-r--r--src/lib/testing_api_cmd_pay.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/testing_api_cmd_pay.c b/src/lib/testing_api_cmd_pay.c
index d28143cc..9d238f72 100644
--- a/src/lib/testing_api_cmd_pay.c
+++ b/src/lib/testing_api_cmd_pay.c
@@ -276,15 +276,9 @@ struct PayAbortRefundState
* Expected HTTP response code.
*/
unsigned int http_status;
-
- /**
- * Connection handle to the exchange.
- */
- struct TALER_EXCHANGE_Handle *exchange;
};
-
/**
* Free a /check-payment CMD, and possibly cancel a pending
* operation thereof.
@@ -1519,7 +1513,7 @@ pay_abort_refund_run (void *cls,
(pars->refund_fee, &refund_fee));
pars->rh = TALER_EXCHANGE_refund2
- (pars->exchange,
+ (is->exchange,
&refund_amount,
&refund_fee,
h_contract_terms,
@@ -1540,7 +1534,6 @@ pay_abort_refund_run (void *cls,
* at the exchange.
*
* @param label command label.
- * @param exchange connection label to the exchange.
* @param abort_reference reference to the "pay abort" CMD that
* will offer the refund permission.
* @param num_coins how many coins are expected to be refunded.
@@ -1552,7 +1545,6 @@ pay_abort_refund_run (void *cls,
struct TALER_TESTING_Command
TALER_TESTING_cmd_pay_abort_refund
(const char *label,
- struct TALER_EXCHANGE_Handle *exchange,
const char *abort_reference,
unsigned int num_coins,
const char *refund_amount,
@@ -1568,7 +1560,6 @@ TALER_TESTING_cmd_pay_abort_refund
pars->refund_amount = refund_amount;
pars->refund_fee = refund_fee;
pars->http_status = http_status;
- pars->exchange = exchange;
cmd.cls = pars;
cmd.label = label;