summaryrefslogtreecommitdiff
path: root/src/authorization
diff options
context:
space:
mode:
Diffstat (limited to 'src/authorization')
-rw-r--r--src/authorization/anastasis_authorization_plugin_iban.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_iban.c b/src/authorization/anastasis_authorization_plugin_iban.c
index 3c72e16..49c2ad5 100644
--- a/src/authorization/anastasis_authorization_plugin_iban.c
+++ b/src/authorization/anastasis_authorization_plugin_iban.c
@@ -328,9 +328,19 @@ respond_with_challenge (struct ANASTASIS_AUTHORIZATION_State *as,
if (TALER_MHD_xmime_matches (mime,
"application/json"))
{
+ char subject[64];
+
+ GNUNET_snprintf (subject,
+ sizeof (subject),
+ "Anastasis %llu",
+ (unsigned long long) as->code);
resp = TALER_MHD_MAKE_JSON_PACK (
GNUNET_JSON_pack_string ("method",
"iban"),
+ GNUNET_JSON_pack_bool ("async",
+ true),
+ GNUNET_JSON_pack_uint64 ("answer_code",
+ as->code),
GNUNET_JSON_pack_object_steal (
"details",
GNUNET_JSON_PACK (
@@ -340,8 +350,8 @@ respond_with_challenge (struct ANASTASIS_AUTHORIZATION_State *as,
ctx->business_iban),
GNUNET_JSON_pack_string ("business_name",
ctx->business_name),
- GNUNET_JSON_pack_uint64 ("wire_transfer_subject",
- as->code))));
+ GNUNET_JSON_pack_string ("wire_transfer_subject",
+ subject))));
}
else
{