-finish kyc wallet implementation (except for DB interaction)
This commit is contained in:
parent
4e3b133e47
commit
c6c9db0c8e
@ -129,7 +129,13 @@ TEH_handler_kyc_wallet (
|
|||||||
TALER_EC_EXCHANGE_KYC_WALLET_SIGNATURE_INVALID,
|
TALER_EC_EXCHANGE_KYC_WALLET_SIGNATURE_INVALID,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
if (TEH_KYC_NONE == TEH_kyc_config.mode)
|
||||||
|
return TALER_MHD_reply_static (
|
||||||
|
connection,
|
||||||
|
MHD_HTTP_NO_CONTENT,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
0);
|
||||||
ret = TEH_DB_run_transaction (connection,
|
ret = TEH_DB_run_transaction (connection,
|
||||||
"check wallet kyc",
|
"check wallet kyc",
|
||||||
&res,
|
&res,
|
||||||
@ -137,14 +143,11 @@ TEH_handler_kyc_wallet (
|
|||||||
&krc);
|
&krc);
|
||||||
if (GNUNET_SYSERR == ret)
|
if (GNUNET_SYSERR == ret)
|
||||||
return res;
|
return res;
|
||||||
|
return TALER_MHD_REPLY_JSON_PACK (
|
||||||
// FIXME: act on krc.kyc!
|
|
||||||
return TALER_MHD_reply_static (
|
|
||||||
connection,
|
connection,
|
||||||
MHD_HTTP_NO_CONTENT,
|
MHD_HTTP_OK,
|
||||||
NULL,
|
GNUNET_JSON_pack_uint64 ("payment_target_uuid",
|
||||||
NULL,
|
krc.kyc.payment_target_uuid));
|
||||||
0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user