diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-16 21:04:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-16 21:04:51 +0200 |
commit | c62792638bd933b9e6fe57358c1233b7a48d6d3f (patch) | |
tree | 02fdf6d8fa82be51c83ea5f88b2dd164a41af0b3 /contrib | |
parent | af97071ad6446b851bbb8cd319a768eade952fee (diff) | |
download | exchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.tar.gz exchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.tar.bz2 exchange-c62792638bd933b9e6fe57358c1233b7a48d6d3f.zip |
work on kycaid plugin response generation logic
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Makefile.am | 10 | ||||
-rw-r--r-- | contrib/bad_gateway.en.must | 12 | ||||
-rw-r--r-- | contrib/kyc_failed.en.must | 20 | ||||
-rw-r--r-- | contrib/kyc_interaction_failed.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_internal_error.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_ratelimit.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_timeout.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_unauthorized.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_unexpected_reply.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_provider_unpaid.en.must | 13 | ||||
-rw-r--r-- | contrib/kyc_user_failed.en.must | 20 | ||||
-rw-r--r-- | contrib/test.en.must | 0 |
12 files changed, 152 insertions, 1 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 671e7908b..c69be57e4 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -3,7 +3,15 @@ SUBDIRS = . tmplpkgdatadir = $(prefix)/share/taler/exchange/templates/ dist_tmplpkgdata_DATA = \ - test.en.must + bad_gateway.en.must \ + kyc_provider_unauthorized.en.must \ + kyc_provider_unexpected_reply.en.must \ + kyc_interaction_failed.en.must \ + kyc_provider_unpaid.en.must \ + kyc_provider_internal_error.en.must \ + kyc_user_failed.en.must \ + kyc_provider_ratelimit.en.must \ + kyc_provider_timeout.en.must # %%.must: merchant-backoffice/%.html # WTF: cp $< $@ diff --git a/contrib/bad_gateway.en.must b/contrib/bad_gateway.en.must new file mode 100644 index 000000000..f177db900 --- /dev/null +++ b/contrib/bad_gateway.en.must @@ -0,0 +1,12 @@ +<html> +<head> +<title>KYC server failure</title> +</head> +<body> +The KYC backend returned a malformed response, reproduced +below. Please inform the exchange operator about this failure. +<pre> +{{ kyc_server_reply }} +</pre> +</body> +</html>
\ No newline at end of file diff --git a/contrib/kyc_failed.en.must b/contrib/kyc_failed.en.must new file mode 100644 index 000000000..c1e27a821 --- /dev/null +++ b/contrib/kyc_failed.en.must @@ -0,0 +1,20 @@ +<html> +<head> +<title>KYC authentication failed</title> +</head> +<body> +You failed the KYC check. See below for details. +<!-- {{kyc_logic}} indicates the type of KYC provider + which generated the reply; for now, only + "kycaid" is possible. Switch on the + {{kyc_logic}} to render results in a provider-specific + way. (or introduce new templates per provider?) --> +<!-- TODO: figure out exactly what the + format of 'verifications' is here + based on KYCAID documentation and parse + that here. --> +<pre> +{{ verifications }} +</pre> +</body> +</html>
\ No newline at end of file diff --git a/contrib/kyc_interaction_failed.en.must b/contrib/kyc_interaction_failed.en.must new file mode 100644 index 000000000..504cd09c9 --- /dev/null +++ b/contrib/kyc_interaction_failed.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC server interaction failed</title> +</head> +<body> +The KYC backend returned a response indicating a problem with the exchange logic. Please inform the exchange operator about this failure. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_internal_error.en.must b/contrib/kyc_provider_internal_error.en.must new file mode 100644 index 000000000..37d1e0f3a --- /dev/null +++ b/contrib/kyc_provider_internal_error.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC provider had an internal error</title> +</head> +<body> +The KYC backend had an internal error. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_ratelimit.en.must b/contrib/kyc_provider_ratelimit.en.must new file mode 100644 index 000000000..77917c0b3 --- /dev/null +++ b/contrib/kyc_provider_ratelimit.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC provider rate limit reached</title> +</head> +<body> +The KYC backend interaction ran into a rate limit. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_timeout.en.must b/contrib/kyc_provider_timeout.en.must new file mode 100644 index 000000000..c1ad79b34 --- /dev/null +++ b/contrib/kyc_provider_timeout.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC provider timeout</title> +</head> +<body> +The KYC backend interaction ran into a timeout. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_unauthorized.en.must b/contrib/kyc_provider_unauthorized.en.must new file mode 100644 index 000000000..9b4858178 --- /dev/null +++ b/contrib/kyc_provider_unauthorized.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC server refused access</title> +</head> +<body> +The KYC backend refused the authorization code used by the exchange operator. Please inform the exchange operator about this failure. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_unexpected_reply.en.must b/contrib/kyc_provider_unexpected_reply.en.must new file mode 100644 index 000000000..b3df670a4 --- /dev/null +++ b/contrib/kyc_provider_unexpected_reply.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC provider returned unexpected status code</title> +</head> +<body> +The KYC backend returned an unexpected status code. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_provider_unpaid.en.must b/contrib/kyc_provider_unpaid.en.must new file mode 100644 index 000000000..65fa4f9b7 --- /dev/null +++ b/contrib/kyc_provider_unpaid.en.must @@ -0,0 +1,13 @@ +<html> +<head> +<title>KYC credit exhausted</title> +</head> +<body> +The KYC backend refused the process as the exchange operator's credit balance at the KYC provider is insufficient. Please inform the exchange operator about this failure. +<pre> +{{ kyc_http_status }} +{{ kyc_logic }} +{{ kyc_server_reply }} +</pre> +</body> +</html> diff --git a/contrib/kyc_user_failed.en.must b/contrib/kyc_user_failed.en.must new file mode 100644 index 000000000..54a4637c4 --- /dev/null +++ b/contrib/kyc_user_failed.en.must @@ -0,0 +1,20 @@ +<html> +<head> +<title>KYC authentication failed</title> +</head> +<body> +You failed the KYC check. See below for details. +<!-- {{logic}} indicates the type of KYC provider + which generated the reply; for now, only + "kycaid" is possible. Switch on the + {{logic}} to render results in a provider-specific + way. (or introduce new templates per provider?) --> +<!-- TODO: figure out exactly what the + format of 'verifications' is here + based on KYCAID documentation and parse + that here. --> +<pre> +{{ verifications }} +</pre> +</body> +</html>
\ No newline at end of file diff --git a/contrib/test.en.must b/contrib/test.en.must deleted file mode 100644 index e69de29bb..000000000 --- a/contrib/test.en.must +++ /dev/null |