summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_deposits_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-07 19:35:29 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-07 19:35:29 +0100
commit6ffb32aaab11b8c21de8c457b438044c4a2b37c3 (patch)
tree053f24b2f4809f2b22542c7846a57c228fa05a3a /src/testing/testing_api_cmd_deposits_get.c
parent98c30bee88762acfc236c918fd2fa6151c0808ff (diff)
downloadexchange-6ffb32aaab11b8c21de8c457b438044c4a2b37c3.tar.gz
exchange-6ffb32aaab11b8c21de8c457b438044c4a2b37c3.tar.bz2
exchange-6ffb32aaab11b8c21de8c457b438044c4a2b37c3.zip
add required payto URI traits
Diffstat (limited to 'src/testing/testing_api_cmd_deposits_get.c')
-rw-r--r--src/testing/testing_api_cmd_deposits_get.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_deposits_get.c b/src/testing/testing_api_cmd_deposits_get.c
index e0c7f47d0..baddb2d00 100644
--- a/src/testing/testing_api_cmd_deposits_get.c
+++ b/src/testing/testing_api_cmd_deposits_get.c
@@ -62,6 +62,11 @@ struct TrackTransactionState
const char *transaction_reference;
/**
+ * Payto URI of the merchant receiving the deposit.
+ */
+ char *merchant_payto_uri;
+
+ /**
* Index of the coin involved in the transaction. Recall:
* at the exchange, the tracking is done _per coin_.
*/
@@ -222,7 +227,9 @@ track_transaction_run (void *cls,
TALER_TESTING_interpreter_fail (tts->is);
return;
}
-
+ tts->merchant_payto_uri
+ = GNUNET_strdup (json_string_value (json_object_get (wire_details,
+ "payto_uri")));
if (GNUNET_OK !=
TALER_TESTING_get_trait_contract_terms (transaction_cmd,
&contract_terms))
@@ -291,6 +298,7 @@ track_transaction_cleanup (void *cls,
TALER_EXCHANGE_deposits_get_cancel (tts->tth);
tts->tth = NULL;
}
+ GNUNET_free (tts->merchant_payto_uri);
GNUNET_free (tts);
}
@@ -314,6 +322,8 @@ track_transaction_traits (void *cls,
struct TALER_TESTING_Trait traits[] = {
TALER_TESTING_make_trait_wtid (&tts->wtid),
TALER_TESTING_make_trait_payment_target_uuid (&tts->kyc_uuid),
+ TALER_TESTING_make_trait_payto_uri (
+ (const char **) &tts->merchant_payto_uri),
TALER_TESTING_trait_end ()
};