summaryrefslogtreecommitdiff
path: root/src/include/anastasis_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/anastasis_service.h')
-rw-r--r--src/include/anastasis_service.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/include/anastasis_service.h b/src/include/anastasis_service.h
index dc0fb12..c21cde5 100644
--- a/src/include/anastasis_service.h
+++ b/src/include/anastasis_service.h
@@ -866,6 +866,11 @@ struct ANASTASIS_TruthChallengeDetails
enum TALER_ErrorCode ec;
/**
+ * Full response in JSON, if provided.
+ */
+ const json_t *response;
+
+ /**
* Details depending on @e http_status.
*/
union
@@ -944,6 +949,12 @@ struct ANASTASIS_TruthChallengeDetails
* The payment secret (aka order ID) extracted from the @e payment_request.
*/
struct ANASTASIS_PaymentSecretP ps;
+
+ /**
+ * Data extracted from the payto:// URI.
+ */
+ const struct TALER_MERCHANT_PayUriData *pd;
+
} payment_required;
} details;
@@ -988,7 +999,7 @@ ANASTASIS_truth_challenge (
const struct ANASTASIS_CRYPTO_TruthUUIDP *truth_uuid,
const struct ANASTASIS_CRYPTO_TruthKeyP *truth_key,
const struct ANASTASIS_PaymentSecretP *payment_secret,
- ANASTASIS_KeyShareLookupCallback cb,
+ ANASTASIS_TruthChallengeCallback cb,
void *cb_cls);
@@ -1052,6 +1063,12 @@ struct ANASTASIS_TruthSolveReply
* The payment secret (aka order ID) extracted from the @e payment_request.
*/
struct ANASTASIS_PaymentSecretP ps;
+
+ /**
+ * Data extracted from the payto:// URI.
+ */
+ const struct TALER_MERCHANT_PayUriData *pd;
+
} payment_required;
/**
@@ -1119,7 +1136,7 @@ ANASTASIS_truth_solve (
const struct ANASTASIS_PaymentSecretP *payment_secret,
struct GNUNET_TIME_Relative timeout,
const struct GNUNET_HashCode *hashed_answer,
- ANASTASIS_KeyShareLookupCallback cb,
+ ANASTASIS_TruthSolveCallback cb,
void *cb_cls);